]> granicus.if.org Git - php/commitdiff
- Silence "unused variable" warning when ip6 support is disabled
authorJani Taskinen <jani@php.net>
Fri, 11 Jul 2008 13:11:37 +0000 (13:11 +0000)
committerJani Taskinen <jani@php.net>
Fri, 11 Jul 2008 13:11:37 +0000 (13:11 +0000)
main/network.c

index ff4cbbfd7575838de9ad655fced5d9f179dae58b..51d76faf6b848abbfbf93527c07c0439a48fa395 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;