diff --git a/src/network.c b/src/network.c index 0d1e1a54f..7a2e6ac0b 100644 --- a/src/network.c +++ b/src/network.c @@ -61,7 +61,13 @@ # include # include #elif HAVE_WS2TCPIP_H +#undef _WIN32_WINNT +// We need inet_pton to get defined and 0x0600 does it +#define _WIN32_WINNT 0x0600 # include +#undef _WIN32_WINNT +// Then we'll go back to Server 2003 +#define _WIN32_WINNT 0x0502 # if defined(HAVE_WSPIAPI_H) # include # endif