From e54a66aa6c809dbd9befa668d6be77dfb30cde5d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 30 Mar 2024 22:37:08 +0100 Subject: [PATCH] curl-confopts.m4: define CARES_NO_DEPRECATED when c-ares is used Starting in 1.28.0 c-ares added deprecation warnings for some API calls libcurl uses. Closes #13240 --- m4/curl-confopts.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/m4/curl-confopts.m4 b/m4/curl-confopts.m4 index 37f7d4c2e6..1d2d6fed46 100644 --- a/m4/curl-confopts.m4 +++ b/m4/curl-confopts.m4 @@ -561,6 +561,7 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [ if test "$want_ares" = "yes"; then dnl finally c-ares will be used AC_DEFINE(USE_ARES, 1, [Define to enable c-ares support]) + AC_DEFINE(CARES_NO_DEPRECATED, 1, [Ignore c-ares deprecation warnings]) AC_SUBST([USE_ARES], [1]) curl_res_msg="c-ares" fi