]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-base: fix build with disabled threaded resolver
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Apr 2025 05:54:32 +0000 (07:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Apr 2025 06:42:56 +0000 (08:42 +0200)
... but *with* DoH.

Fixes #17121
Closes #17123

lib/asyn-base.c

index 1c07436a2f9ffbdd025374b7aeaa894546a9b359..9c99a8ee10fc26b0396eedca1569f2a02c8e5f25 100644 (file)
 
 #include "curl_setup.h"
 
-/***********************************************************************
- * Only for builds using asynchronous name resolves
- **********************************************************************/
-#ifdef CURLRES_ASYNCH
-
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
 /* 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 */