From: Yang Tse Date: Thu, 4 Feb 2010 10:08:39 +0000 (+0000) Subject: Fix compiler warning: unused variable X-Git-Tag: curl-7_20_0~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15efa262bbe0683c38753ed8b358d38d4ea484e5;p=curl Fix compiler warning: unused variable --- diff --git a/lib/hostip4.c b/lib/hostip4.c index 902f02263..3e5a12d2b 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -136,7 +136,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port) { -#if defined(HAVE_GETHOSTBYNAME_R_3) +#if !defined(HAVE_GETADDRINFO_THREADSAFE) && defined(HAVE_GETHOSTBYNAME_R_3) int res; #endif Curl_addrinfo *ai = NULL;