]> granicus.if.org Git - curl/commitdiff
lib: Only define curl_dofreeaddrinfo if struct addrinfo is available
authorDan Fandrich <dan@coneharvesters.com>
Fri, 27 Nov 2015 09:51:22 +0000 (10:51 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 27 Nov 2015 09:51:22 +0000 (10:51 +0100)
lib/curl_addrinfo.h

index 4ef882703a91ae16064d61245328cb80fdd605c5..ad804dbb04915ebc9617abce8faf205e9aed8843 100644 (file)
@@ -83,7 +83,8 @@ Curl_addrinfo *Curl_str2addr(char *dotted, int port);
 Curl_addrinfo *Curl_unix2addr(const char *path);
 #endif
 
-#if defined(CURLDEBUG) && defined(HAVE_FREEADDRINFO)
+#if defined(CURLDEBUG) && defined(HAVE_GETADDRINFO) && \
+    defined(HAVE_FREEADDRINFO)
 void
 curl_dofreeaddrinfo(struct addrinfo *freethis,
                     int line, const char *source);