Branch: Tag:

2013-10-16

2013-10-16 17:28:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some system header files hide IPPROTO_IPV6 in an enum.

The WIN32 SDK 6.0 ws2def.h header file hides the symbol
IPPROTO_IPV6 in an anonymous enum typedefed to IPPROTO.

Improves support for IPv6 on WIN32.

27:   #include "pike_netlib.h"   #include "backend.h"    + #if defined(HAVE_IPPROTO_IPv6) && !defined(IPPROTO_IPV6) + // Hidden in an enum. + #define IPPROTO_IPV6 IPPROTO_IPV6 + #endif +    struct my_file   {    struct fd_callback_box box; /* Must be first. */