From: Jani Taskinen Date: Fri, 11 Jul 2008 13:12:18 +0000 (+0000) Subject: MFH: silence warning X-Git-Tag: php-5.2.7RC1~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=596f8bf88584785088a423d8d206edd2d536f066;p=php MFH: silence warning --- diff --git a/main/network.c b/main/network.c index fe236059f6..d0b710e560 100644 --- a/main/network.c +++ b/main/network.c @@ -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;