]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 19 Jan 2022 16:22:28 +0000 (10:22 -0600)
commite32aec6c0954fdfd93fe66c748f601ec9d8dd8da
treee96ab48beb17019563985c289b282d6d64065115
parentd3bd4a3a735f6f7e6f2cb775e059667657b26d0b
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