fix `configure' detection of getaddrinfo()
This commit is contained in:
parent
07a2ace943
commit
2482816d3d
2
src/configure
vendored
2
src/configure
vendored
|
@ -5673,7 +5673,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||
int
|
||||
main ()
|
||||
{
|
||||
getaddrinfo(NULL, NULL, NULL, NULL);
|
||||
getaddrinfo(0, 0, 0, 0);
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user