]> sjero.net Git - wget/blobdiff - src/connect.c
[svn] Don't compile socket_has_inet6 if IPv6 is disabled.
[wget] / src / connect.c
index 5557ad39d4c2c1f07ac20507e9731bf89814f861..35e4cfdc097e7f9abb18e48a8a4fc8a55d72934e 100644 (file)
@@ -588,6 +588,9 @@ retryable_socket_connect_error (int err)
   return 1;
 }
 
+#ifdef ENABLE_IPV6
+# ifndef HAVE_GETADDRINFO_AI_ADDRCONFIG
+
 /* Return non-zero if the INET6 socket family is supported on the
    system.
 
@@ -613,6 +616,9 @@ socket_has_inet6 (void)
   return supported;
 }
 
+# endif/* not HAVE_GETADDRINFO_AI_ADDRCONFIG */
+#endif /* ENABLE_IPV6 */
+
 /* Wait for a single descriptor to become available, timing out after
    MAXTIME seconds.  Returns 1 if FD is available, 0 for timeout and
    -1 for error.  The argument WAIT_FOR can be a combination of