From 6ccbc0d37dfc1cd11c8ce4e5e56e36c308aae352 Mon Sep 17 00:00:00 2001 From: Stig Venaas Date: Sun, 10 Sep 2000 09:35:48 +0000 Subject: [PATCH] A tiny fix to the getaddrinfo check --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.40.0