From 5ca47f19d773da3a35b707405620890050d34c2c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Apr 2004 15:09:43 +0000 Subject: [PATCH] the pack_hostent() proto isn't used/needed with ipv6 is enabled. time to restructure this source file! --- lib/hostip.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); /*