fix `configure' detection of getaddrinfo()

This commit is contained in:
Matthew Flatt 2011-02-27 16:54:22 -07:00
parent 07a2ace943
commit 2482816d3d
2 changed files with 2 additions and 2 deletions

2
src/configure vendored
View File

@ -5673,7 +5673,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
getaddrinfo(NULL, NULL, NULL, NULL);
getaddrinfo(0, 0, 0, 0);
;
return 0;
}

View File

@ -793,7 +793,7 @@ AC_MSG_CHECKING([for getaddrinfo])
AC_TRY_LINK([#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>],
[getaddrinfo(NULL, NULL, NULL, NULL);],
[getaddrinfo(0, 0, 0, 0);],
AC_DEFINE(HAVE_GETADDRINFO,1,[Have getaddrinfo])
have_getaddrinfo=yes,
have_getaddrinfo=no)