From: Daniel Stenberg Date: Thu, 3 Apr 2025 09:35:06 +0000 (+0200) Subject: hostip: fix build without threaded-resolver and without DoH X-Git-Tag: curl-8_14_0~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f496d05b681f112225c839c8907b83aeebbf89b;p=thirdparty%2Fcurl.git hostip: fix build without threaded-resolver and without DoH Closes #16938 --- diff --git a/lib/hostip.c b/lib/hostip.c index 26b2057479..bef67c73bc 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -932,7 +932,11 @@ enum resolve_t Curl_resolv_timeout(struct Curl_easy *data, else timeout = (timeoutms > LONG_MAX) ? LONG_MAX : (long)timeoutms; - if(!timeout || data->set.doh) + if(!timeout +#ifndef CURL_DISABLE_DOH + || data->set.doh +#endif + ) /* USE_ALARM_TIMEOUT defined, but no timeout actually requested or resolve done using DoH */ return Curl_resolv(data, hostname, port, TRUE, entry);