From: Jani Taskinen Date: Fri, 11 Jul 2008 13:11:49 +0000 (+0000) Subject: MFH: silence warning X-Git-Tag: php-5.3.0alpha1~397 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cb641a66ebed254671efbad2a78c5b98080e5bc;p=php MFH: silence warning --- diff --git a/main/network.c b/main/network.c index fd0d3161ce..782224eda8 100644 --- a/main/network.c +++ b/main/network.c @@ -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;