summaryrefslogtreecommitdiff
path: root/main/network.c
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2008-07-11 13:11:49 +0000
committerJani Taskinen <jani@php.net>2008-07-11 13:11:49 +0000
commit7cb641a66ebed254671efbad2a78c5b98080e5bc (patch)
treecaa7ea20a1a3ea2e22b4b3e83f631817f3166a17 /main/network.c
parent04c8373b6a1fcde7b8ec340695f53469bf55dfae (diff)
downloadphp-git-7cb641a66ebed254671efbad2a78c5b98080e5bc.tar.gz
MFH: silence warning
Diffstat (limited to 'main/network.c')
-rw-r--r--main/network.c2
1 files changed, 2 insertions, 0 deletions
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;