diff options
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/php_network.h b/main/php_network.h index a694198df9..6205a1a2dc 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -27,11 +27,11 @@ # endif # undef FD_SETSIZE # include "arpa/inet.h" -# if HAVE_WS2TCPIP_H - /* IPv6 stuff, also defines socklen_t */ -# include <ws2tcpip.h> -# else -typedef unsigned int socklen_t; +/* defines socklen_t and some IPV6 stuff */ +# include <ws2tcpip.h> +# if HAVE_WSPIAPI_H + /* getaddrinfo */ +# include <wspiapi.h> # endif #else # undef closesocket |