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

index c3345186de0811abdf3d39305efaaefc9b4c1a90..527bf25c86e1ae2ae9056cafe9c4452f7e3eff81 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