aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2015-11-27 10:51:22 +0100
committerDan Fandrich <dan@coneharvesters.com>2015-11-27 10:51:22 +0100
commit78c25c854ac23b140d3a12b35e45a4c7f7b665b0 (patch)
tree570f4d5e7e1df88e802fe38af718d450923546b2 /lib
parentdb05d7a731109a2a5234168973783499d300fdb8 (diff)
lib: Only define curl_dofreeaddrinfo if struct addrinfo is available
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_addrinfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl_addrinfo.h b/lib/curl_addrinfo.h
index 4ef882703..ad804dbb0 100644
--- a/lib/curl_addrinfo.h
+++ b/lib/curl_addrinfo.h
@@ -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);