summaryrefslogtreecommitdiff
path: root/main/php_network.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_network.h')
-rw-r--r--main/php_network.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/php_network.h b/main/php_network.h
index 3e9b908ca4..a694198df9 100644
--- a/main/php_network.h
+++ b/main/php_network.h
@@ -27,7 +27,12 @@
# endif
# undef FD_SETSIZE
# include "arpa/inet.h"
-# define socklen_t unsigned int
+# if HAVE_WS2TCPIP_H
+ /* IPv6 stuff, also defines socklen_t */
+# include <ws2tcpip.h>
+# else
+typedef unsigned int socklen_t;
+# endif
#else
# undef closesocket
# define closesocket close