From: Daniel Stenberg Date: Tue, 22 Apr 2025 05:54:32 +0000 (+0200) Subject: asyn-base: fix build with disabled threaded resolver X-Git-Tag: curl-8_14_0~255 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1db267eada454f906c97c0cabce5da241a435686;p=thirdparty%2Fcurl.git asyn-base: fix build with disabled threaded resolver ... but *with* DoH. Fixes #17121 Closes #17123 --- diff --git a/lib/asyn-base.c b/lib/asyn-base.c index 1c07436a2f..9c99a8ee10 100644 --- a/lib/asyn-base.c +++ b/lib/asyn-base.c @@ -24,11 +24,6 @@ #include "curl_setup.h" -/*********************************************************************** - * Only for builds using asynchronous name resolves - **********************************************************************/ -#ifdef CURLRES_ASYNCH - #ifdef HAVE_NETINET_IN_H #include #endif @@ -62,6 +57,11 @@ /* The last #include file should be: */ #include "memdebug.h" +/*********************************************************************** + * Only for builds using asynchronous name resolves + **********************************************************************/ +#ifdef CURLRES_ASYNCH + #ifdef USE_ARES /* common functions for c-ares and threaded resolver with HTTPSRR */