1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

hide the pack_hostent proto if ipv6 is enabled, as figured out by Tor Arntsen

This commit is contained in:
Daniel Stenberg 2004-02-05 08:34:31 +00:00
parent 9254c3a103
commit 791e49134b

View File

@ -86,9 +86,11 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
char *hostname, char *hostname,
int port, int port,
int *waitp); int *waitp);
#ifndef ENABLE_IPV6
#if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) #if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES)
static struct hostent* pack_hostent(char** buf, struct hostent* orig); static struct hostent* pack_hostent(char** buf, struct hostent* orig);
#endif #endif
#endif
void Curl_global_host_cache_init(void) void Curl_global_host_cache_init(void)
{ {