]> granicus.if.org Git - php/commitdiff
MFH: silence warning
authorJani Taskinen <jani@php.net>
Fri, 11 Jul 2008 13:12:18 +0000 (13:12 +0000)
committerJani Taskinen <jani@php.net>
Fri, 11 Jul 2008 13:12:18 +0000 (13:12 +0000)
main/network.c

index fe236059f6345054aa2c5953a8534ca829593f77..d0b710e56043949f590136e45be0053b1de14eb8 100644 (file)
@@ -162,7 +162,9 @@ static int php_network_getaddresses(const char *host, int socktype, struct socka
        struct sockaddr **sap;
        int n;
 #if HAVE_GETADDRINFO
+# if HAVE_IPV6
        static int ipv6_borked = -1; /* the way this is used *is* thread safe */
+# endif
        struct addrinfo hints, *res, *sai;
 #else
        struct hostent *host_info;