I adapted Rafał's patch from Gentoo to Ubuntu. Note, it does a full copy of the old npunix.c to a new npunix.cpp with the changes included: this was the only way I could make the patch so that dpkg-buildpackage would apply it without failing.
To apply, put it into vlc-1.1.9/debian/patches/ and add a line containing the patch name to vlc-1.1.9/debian/patches/series. Then you should be able to use dpkg-buildpackage like usual.
I adapted Rafał's patch from Gentoo to Ubuntu. Note, it does a full copy of the old npunix.c to a new npunix.cpp with the changes included: this was the only way I could make the patch so that dpkg-buildpackage would apply it without failing.
To apply, put it into vlc-1.1. 9/debian/ patches/ and add a line containing the patch name to vlc-1.1. 9/debian/ patches/ series. Then you should be able to use dpkg-buildpackage like usual.