<p>Friendly Automation <strong>submitted</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;"><span></span><br></pre><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><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<br>M configure.ac<br>2 files changed, 31 insertions(+), 2 deletions(-)<br><br></pre>
<pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure b/configure</span><br><span>index 62c340a..3459819 100755</span><br><span>--- a/configure</span><br><span>+++ b/configure</span><br><span>@@ -19663,7 +19663,11 @@</span><br><span> int</span><br><span> main ()</span><br><span> {</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> ;</span><br><span> return 0;</span><br><span> }</span><br><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: 4 </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-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>