asyn-base: fix build with disabled threaded resolver

... but *with* DoH.

Fixes #17121
Closes #17123
This commit is contained in:
Daniel Stenberg 2025-04-22 07:54:32 +02:00
parent 7b375b8b91
commit 1db267eada
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -24,11 +24,6 @@
#include "curl_setup.h"
/***********************************************************************
* Only for builds using asynchronous name resolves
**********************************************************************/
#ifdef CURLRES_ASYNCH
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#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 */