]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-confopts.m4: define CARES_NO_DEPRECATED when c-ares is used
authorDaniel Stenberg <daniel@haxx.se>
Sat, 30 Mar 2024 21:37:08 +0000 (22:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 31 Mar 2024 09:01:28 +0000 (11:01 +0200)
Starting in 1.28.0 c-ares added deprecation warnings for some API calls
libcurl uses.

Closes #13240

m4/curl-confopts.m4

index 37f7d4c2e6cde408133c127458d4dcc353fc1101..1d2d6fed4688127fa4bd259b4e578a389e09e103 100644 (file)
@@ -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