From: Daniel Stenberg Date: Tue, 6 Apr 2004 15:09:43 +0000 (+0000) Subject: the pack_hostent() proto isn't used/needed with ipv6 is enabled. X-Git-Tag: curl-7_11_2~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ca47f19d773da3a35b707405620890050d34c2c;p=thirdparty%2Fcurl.git the pack_hostent() proto isn't used/needed with ipv6 is enabled. time to restructure this source file! --- diff --git a/lib/hostip.c b/lib/hostip.c index 8edd8d5aa6..c578f0674f 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); /*