From 571280678594c4ccfbfcad854c76e02d0e350809 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 1 Jun 2018 14:40:35 +0200 Subject: [PATCH] curl_addrinfo: use same #ifdef conditions in source as header ... for curl_dofreeaddrinfo --- lib/curl_addrinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() * -- 2.40.0