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

index fd0d3161ce94e2438ae248fb15da2d8c733acfcf..782224eda8a730f9d0be5ca663c7afa455497f57 100644 (file)
@@ -167,7 +167,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;