]> granicus.if.org Git - php/commitdiff
MFH: fix non ipv6 enabled win build
authorRob Richards <rrichards@php.net>
Tue, 6 Nov 2007 10:57:26 +0000 (10:57 +0000)
committerRob Richards <rrichards@php.net>
Tue, 6 Nov 2007 10:57:26 +0000 (10:57 +0000)
main/network.c

index 2dccd30a0331b71515939adadbba62d778ac3398..6afc043b6e772c197010646d75d8c11d993a97d2 100644 (file)
@@ -91,7 +91,9 @@ int inet_aton(const char *, struct in_addr *);
 # define SOCK_CONN_ERR SOCKET_ERROR
 # define PHP_TIMEOUT_ERROR_VALUE               WSAETIMEDOUT
 
+#if HAVE_IPV6
 const struct in6_addr in6addr_any = {0}; /* IN6ADDR_ANY_INIT; */
+#endif
 
 #else
 # define SOCK_ERR -1