1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 10:03:18 +02:00

More restrictive getaddrinfo check, better not find it than breaking builds

This commit is contained in:
Stig Venaas
2000-09-09 12:09:43 +00:00
parent 3115a0ccfe
commit f802468c2a

View File

@@ -347,7 +347,6 @@ ctime_r \
cuserid \
flock \
gcvt \
getaddrinfo \
getlogin \
gethostbyaddr \
getrusage \
@@ -394,6 +393,14 @@ utime \
vsnprintf \
)
dnl Check for getaddrinfo, should be a better way, but...
AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo,
[AC_TRY_COMPILE([#include <netdb.h>], [getaddrinfo(NULL,NULL,NULL,NULL);],
ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no)])
if test "$ac_cv_func_getaddrinfo" = yes; then
AC_DEFINE(HAVE_GETADDRINFO,1,[Define if you have the getaddrinfo function])
fi
AC_REPLACE_FUNCS(strlcat strlcpy getopt)
AC_FUNC_UTIME_NULL
AC_FUNC_ALLOCA