]> git.ipfire.org Git - thirdparty/asterisk.git/commit
BuildSystem: Fix misdetection of gethostbyname_r() on NetBSD
authorMichał Górny <mgorny@NetBSD.org>
Thu, 11 Nov 2021 02:05:02 +0000 (03:05 +0100)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 19 Jan 2022 16:35:16 +0000 (10:35 -0600)
commit7b1e5fa34a6559b024f6999c8db00dbee76293da
tree10b622df7cbeb56822b343594fff5f5b5f0f9bb2
parenteef29d24e1a11e62edf017c695968e6c3e50599c
BuildSystem: Fix misdetection of gethostbyname_r() on NetBSD

Fix the configure script not to detect the presence of gethostbyname_r()
on NetBSD incorrectly.  NetBSD includes it as an internal libc symbol
that is not exposed in system headers and that is incompatible with
other implementations.  In order to avoid misdetecting it, perform
the symbol check only if the declaration is found in the public header
first.

ASTERISK-29817

Change-Id: Iafa359b09908251bcd299ff54be003ea129b9eda
configure
configure.ac