]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
the pack_hostent() proto isn't used/needed with ipv6 is enabled.
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Apr 2004 15:09:43 +0000 (15:09 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Apr 2004 15:09:43 +0000 (15:09 +0000)
time to restructure this source file!

lib/hostip.c

index 8edd8d5aa659d72672b0155806c1e564edc270f6..c578f0674f6af25996544cf05af6b68bab8eeabc 100644 (file)
@@ -114,7 +114,11 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
                                      int port,
                                      int *waitp);
 
+#if (!defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) || \
+     defined(USE_THREADING_GETHOSTBYNAME)) && \
+     !defined(ENABLE_IPV6)
 static struct hostent* pack_hostent(char** buf, struct hostent* orig);
+#endif
 
 #ifdef USE_THREADING_GETHOSTBYNAME
 #ifdef DEBUG_THREADING_GETHOSTBYNAME
@@ -925,7 +929,8 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
 }
 #else /* following code is IPv4-only */
 
-#if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME)
+#if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) || \
+    defined(USE_THREADING_GETHOSTBYNAME)
 static void hostcache_fixoffset(struct hostent *h, long offset);
 
 /*