[vlc-devel] Fwd: [PATCH] Patch for Windows (32 and 64 bit) compilation

Fabrizio Gennari fabrizio.ge at tiscali.it
Sun Jan 18 11:30:43 CET 2015

Il 14/01/2015 08:46, Rémi Denis-Courmont ha scritto:
> The configure script is complicated and large enough as it stands, that
> we avoid adding useless tests
True, but solving a compilation error is not useless...

The compilation error occurs when the mingw-w64 headers are "new 
enough", that is starting from this commit 

I also tried cross-compiling from Ubuntu 14.10: it succeeded, because 
that version has the old netioapi.h (before the commit above) which does 
not provide a definition for if_nametoindex when _WIN32_WINNT is < 
0x0600 (the new one always does).

Here is a stripped-down version of the patch, leaving only the 
if_nametoindex check.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32.patch
Type: text/x-patch
Size: 1858 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150118/fe12b4c9/attachment.bin>

More information about the vlc-devel mailing list