summaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-04 10:08:39 +0000
committerYang Tse <yangsita@gmail.com>2010-02-04 10:08:39 +0000
commit15efa262bbe0683c38753ed8b358d38d4ea484e5 (patch)
tree7c201377bab81962d62d561e13af99ed7423ace1 /lib/hostip4.c
parent429e5445561370044e6e0acd36e10837218dae19 (diff)
downloadcurl-15efa262bbe0683c38753ed8b358d38d4ea484e5.tar.gz
Fix compiler warning: unused variable
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c2
1 files changed, 1 insertions, 1 deletions
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;