aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-05 08:34:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-05 08:34:31 +0000
commit791e49134be83e37143ef10e020cf405a5197b0c (patch)
tree4dd333e7c03636989c185ece0a35cbd4fba86d6e
parent9254c3a103f2dd2bc730e09b805fc8e70c97b360 (diff)
hide the pack_hostent proto if ipv6 is enabled, as figured out by Tor Arntsen
-rw-r--r--lib/hostip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 6c89bd4ae..ed717f76f 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -86,9 +86,11 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
char *hostname,
int port,
int *waitp);
+#ifndef ENABLE_IPV6
#if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES)
static struct hostent* pack_hostent(char** buf, struct hostent* orig);
#endif
+#endif
void Curl_global_host_cache_init(void)
{