]> 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:57 +0000 (10:35 -0600)
commit6a879eea3140c7ea44346752fd4c5758a72840c5
tree85405a56c9f68d5ebac13e3a649cde15394fd809
parent710c8f8b295ad51e44809c70fb3b5c0de992958e
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