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
This commit is contained in:
Daniel Stenberg 2024-03-30 22:37:08 +01:00
parent 3208360845
commit e54a66aa6c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -561,6 +561,7 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
if test "$want_ares" = "yes"; then if test "$want_ares" = "yes"; then
dnl finally c-ares will be used dnl finally c-ares will be used
AC_DEFINE(USE_ARES, 1, [Define to enable c-ares support]) 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]) AC_SUBST([USE_ARES], [1])
curl_res_msg="c-ares" curl_res_msg="c-ares"
fi fi