Skip to content

Commit

Permalink
asyn-ares: renamed define
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bagder committed Feb 21, 2025
1 parent 17ab4d6 commit f261c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/asyn-ares.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f261c8d

Please sign in to comment.