From: Daniel Stenberg Date: Sat, 30 Mar 2024 21:37:08 +0000 (+0100) Subject: curl-confopts.m4: define CARES_NO_DEPRECATED when c-ares is used X-Git-Tag: curl-8_8_0~329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e54a66aa6c809dbd9befa668d6be77dfb30cde5d;p=thirdparty%2Fcurl.git 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 --- 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