]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-ares: renamed define
authorDaniel Stenberg <daniel@haxx.se>
Fri, 21 Feb 2025 13:56:21 +0000 (14:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Feb 2025 15:43:24 +0000 (16:43 +0100)
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

index 30124a51bbd7514a9afa05430b02d7d462f5a26e..6d071969c3a4a657d45f55d3a921eb07a8292eb7 100644 (file)
@@ -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)