From 179aeeaf228e3837a14e5df74285b75d0c243cce Mon Sep 17 00:00:00 2001 From: Niall Date: Wed, 23 Apr 2025 14:57:37 +0100 Subject: [PATCH] ares: add definition for HTTPSRR_WORKS Closes #17157 --- lib/asyn-ares.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 147b4a743e..58dde9309a 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -86,6 +86,13 @@ #define HAVE_CARES_GETADDRINFO 1 #endif +#ifdef USE_HTTPSRR +#if ARES_VERSION < 0x011c00 +#error "requires c-ares 1.28.0 or newer for HTTPSRR" +#endif +#define HTTPSRR_WORKS +#endif + /* The last 3 #include files should be in this order */ #include "curl_printf.h" #include "curl_memory.h" -- 2.47.3