diff options
author | Wez Furlong <wez@php.net> | 2003-12-06 00:00:31 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-12-06 00:00:31 +0000 |
commit | dbb152b96af8fe8e27f2846f558459cdce3326aa (patch) | |
tree | cd725cffd77a9593700986624cdd95bfc8c3d991 /main/php_network.h | |
parent | 190d8e85b53437c3675e55b70a4409a22d531d42 (diff) | |
download | php-git-dbb152b96af8fe8e27f2846f558459cdce3326aa.tar.gz |
Detect and enable IPv6 support under win32.
The ws2tcpip.h header links to IPv6 functions dynamically
and the generated binary will run on win98 and later.
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 7 |
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 |