aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-06 15:09:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-06 15:09:43 +0000
commit5ca47f19d773da3a35b707405620890050d34c2c (patch)
tree5c5f73720d22d35052ff97e22fc596a0958750f0
parent9044fcbb5f4dbf2f873409f9a3fb725e6284b5d1 (diff)
the pack_hostent() proto isn't used/needed with ipv6 is enabled.
time to restructure this source file!
-rw-r--r--lib/hostip.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 8edd8d5aa..c578f0674 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -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);
/*