]> granicus.if.org Git - curl/commitdiff
curl_addrinfo: use same #ifdef conditions in source as header
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Jun 2018 12:40:35 +0000 (14:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Jun 2018 12:40:35 +0000 (14:40 +0200)
... for curl_dofreeaddrinfo

lib/curl_addrinfo.c

index 55d5a3942dab6e22156154234150cd019c644dfc..fd49679c9321767a8cc250e70e2a67d2201e5644 100644 (file)
@@ -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()
  *