From f261c8d992d29e80e33d81cd2566bd970df2becf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 21 Feb 2025 14:56:21 +0100 Subject: [PATCH] asyn-ares: renamed define It has the same name as the one used in asyn-thread, but for a slightly different purpose. This not only caused unity build problems, but would also be confusing and error-prone. --- lib/asyn-ares.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 30124a51bb..6d071969c3 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -71,7 +71,7 @@ #if ARES_VERSION < 0x011c00 #error "requires c-ares 1.28.0 or newer for HTTPSRR" #endif -#define USE_HTTPSRR_ARES +#define HTTPSRR_WORKS #else #if ARES_VERSION < 0x010600 #error "requires c-ares 1.6.0 or newer" @@ -423,7 +423,7 @@ CURLcode Curl_resolver_is_resolved(struct Curl_easy *data, result = Curl_resolver_error(data); if(!result) { *dns = data->state.async.dns; -#ifdef USE_HTTPSRR_ARES +#ifdef HTTPSRR_WORKS { struct Curl_https_rrinfo *lhrr = Curl_httpsrr_dup_move(&res->hinfo); if(!lhrr) -- 2.47.2