From 1db267eada454f906c97c0cabce5da241a435686 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 22 Apr 2025 07:54:32 +0200 Subject: [PATCH] asyn-base: fix build with disabled threaded resolver ... but *with* DoH. Fixes #17121 Closes #17123 --- lib/asyn-base.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 */ -- 2.47.3