From: Stig Venaas Date: Sun, 10 Sep 2000 09:35:48 +0000 (+0000) Subject: A tiny fix to the getaddrinfo check X-Git-Tag: php-4.0.3RC1~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ccbc0d37dfc1cd11c8ce4e5e56e36c308aae352;p=php A tiny fix to the getaddrinfo check --- diff --git a/configure.in b/configure.in index 605bb1552a..3523db5e4c 100644 --- a/configure.in +++ b/configure.in @@ -396,7 +396,7 @@ vsnprintf \ dnl Check for getaddrinfo, should be a better way, but... AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, [AC_TRY_COMPILE([#include ], - [struct addrinfo h;getaddrinfo(NULL,NULL,&h,NULL);], + [struct addrinfo h;getaddrinfo("","",&h,&h);], 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])