diff --git a/lib/hostip.c b/lib/hostip.c index 6c89bd4aef2be489b49ccbcc34adbba8a205573f..ed717f76f6e6ca78f628736173320826be9af3d5 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) {