]> granicus.if.org Git - php/commitdiff
Fixed build
authorMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 1 Mar 2003 15:49:06 +0000 (15:49 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 1 Mar 2003 15:49:06 +0000 (15:49 +0000)
main/network.c

index eee8530ac73ae632e612b3e6f9bff7db39dbe331..9554786f894af6a92f60025989e02f760c467440 100644 (file)
@@ -509,7 +509,7 @@ static void populate_name(
 
                                break;
 
-#if HAVE_IPV6
+#if HAVE_IPV6 && HAVE_INET_NTOP
                        case AF_INET6:
                                buf = (char*)inet_ntop(sa->sa_family, &((struct sockaddr_in6*)sa)->sin6_addr, (char *)&abuf, sizeof(abuf));
                                if (buf) {