net/asterisk: Update asterisk-11.x to 11.20.0
[feed/telephony.git] / net / asterisk-11.x / patches / 010-asterisk-configure-undef-res-ninit.patch
index 937ab0fe6b5f4a9efdf3397635905cfced9947a9..b8a633725a70669864a46e8223049a81ff3b0c00 100644 (file)
@@ -1,10 +1,10 @@
---- a/configure
-+++ b/configure
-@@ -16606,7 +16606,6 @@ if ac_fn_c_try_link "$LINENO"; then :
-   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
--$as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
- $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
+--- a/configure.ac
++++ b/configure.ac
+@@ -1111,7 +1111,6 @@ AC_LINK_IFELSE(
+                       #include <resolv.h>],
+                       [int foo = res_ninit(NULL);])],
+       AC_MSG_RESULT(yes)
+-      AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.])
+       AC_SEARCH_LIBS(res_9_ndestroy, resolv)
+       AC_MSG_CHECKING(for res_ndestroy)
+       AC_LINK_IFELSE(