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.
This commit is contained in:
parent
17ab4d62e6
commit
f261c8d992
@ -71,7 +71,7 @@
|
|||||||
#if ARES_VERSION < 0x011c00
|
#if ARES_VERSION < 0x011c00
|
||||||
#error "requires c-ares 1.28.0 or newer for HTTPSRR"
|
#error "requires c-ares 1.28.0 or newer for HTTPSRR"
|
||||||
#endif
|
#endif
|
||||||
#define USE_HTTPSRR_ARES
|
#define HTTPSRR_WORKS
|
||||||
#else
|
#else
|
||||||
#if ARES_VERSION < 0x010600
|
#if ARES_VERSION < 0x010600
|
||||||
#error "requires c-ares 1.6.0 or newer"
|
#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);
|
result = Curl_resolver_error(data);
|
||||||
if(!result) {
|
if(!result) {
|
||||||
*dns = data->state.async.dns;
|
*dns = data->state.async.dns;
|
||||||
#ifdef USE_HTTPSRR_ARES
|
#ifdef HTTPSRR_WORKS
|
||||||
{
|
{
|
||||||
struct Curl_https_rrinfo *lhrr = Curl_httpsrr_dup_move(&res->hinfo);
|
struct Curl_https_rrinfo *lhrr = Curl_httpsrr_dup_move(&res->hinfo);
|
||||||
if(!lhrr)
|
if(!lhrr)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user