summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-06-01 14:40:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-06-01 14:40:35 +0200
commit571280678594c4ccfbfcad854c76e02d0e350809 (patch)
tree05e53f68b0bbf63c44c216e73506350500dc7a4f
parent923ce4a5909aa7ef1379aa93c6eabcc9a225dd4e (diff)
downloadcurl-571280678594c4ccfbfcad854c76e02d0e350809.tar.gz
curl_addrinfo: use same #ifdef conditions in source as header
... for curl_dofreeaddrinfo
-rw-r--r--lib/curl_addrinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index 55d5a3942..fd49679c9 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -536,7 +536,8 @@ Curl_addrinfo *Curl_unix2addr(const char *path, bool *longpath, bool abstract)
}
#endif
-#if defined(CURLDEBUG) && defined(HAVE_FREEADDRINFO)
+#if defined(CURLDEBUG) && defined(HAVE_GETADDRINFO) && \
+ defined(HAVE_FREEADDRINFO)
/*
* curl_dofreeaddrinfo()
*