<p> Attention is currently required from: Bernd Kuhls. </p>
<p>Fabrice Fontaine would like Bernd Kuhls to <strong>review</strong> this change.
</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19964">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">configure: fix detection of re-entrant resolver functions<br><br>uClibc does not provide res_nsearch:<br>asterisk-16.0.0/main/dns.c:506: undefined reference to `res_nsearch'<br><br>Patch coded by Yann E. MORIN:<br>http://lists.busybox.net/pipermail/buildroot/2018-October/232630.html<br><br>ASTERISK-21795 #close<br><br>Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de><br>[Retrieved from:<br>https: //git.buildroot.net/buildroot/tree/package/asterisk/0005-configure-fix-detection-of-re-entrant-resolver-funct.patch]<br>Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com><br>Change-Id: I79296f19e28ec764bbd1e991bf11c416d0b10563<br>---<br>M configure.ac<br>1 file changed, 26 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/64/19964/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 5aca252..3231450 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -1494,7 +1494,11 @@</span><br><span>                   #include <arpa/nameser.h></span><br><span>                      #endif</span><br><span>                       #include <resolv.h>],</span><br><span style="color: hsl(0, 100%, 40%);">-                     [int foo = res_ninit(NULL);])],</span><br><span style="color: hsl(120, 100%, 40%);">+                       [</span><br><span style="color: hsl(120, 100%, 40%);">+                             int foo;</span><br><span style="color: hsl(120, 100%, 40%);">+                              foo = res_ninit(NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+                                foo = res_nsearch(NULL, NULL, 0, 0, NULL, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+                 ])],</span><br><span>         AC_MSG_RESULT(yes)</span><br><span>   AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.])</span><br><span>  AC_SEARCH_LIBS(res_9_ndestroy, resolv)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19964">change 19964</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/19964"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I79296f19e28ec764bbd1e991bf11c416d0b10563 </div>
<div style="display:none"> Gerrit-Change-Number: 19964 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Fabrice Fontaine <fontaine.fabrice@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Bernd Kuhls <bernd.kuhls@t-online.de> </div>
<div style="display:none"> Gerrit-Attention: Bernd Kuhls <bernd.kuhls@t-online.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>