Committing changes for MacOS folks

Krista Bennett 2020-10-26 10:45:17 +01:00
parent 210ba2b3b3
commit b547226bf0
1 changed files with 5 additions and 3 deletions

View File

@ -562,11 +562,13 @@ if test "x$enable_ipv6" != "xno"; then
AC_DEFINE(HAVE_IPV6, 1, [Define to enable IPv6 support.])
dnl check for getaddrinfo and freeaddrinfo function presence
CFLAGS="$CFLAGS -I/Applications/"
for func in "getaddrinfo" "freeaddrinfo"; do
AC_MSG_CHECKING([for $func])
AC_TRY_LINK([], [$func();],
AC_TRY_LINK([#include <netdb.h> ],
if test "x$func_present" = "xno"; then