# HG changeset patch # User Bruno Haible # Date 1192472941 -7200 # Node ID 637caf8d483dc3082db8a6689aab96ae4a29c3a5 # Parent 3fcb5d44ec45f833715ca393652abbce2c64b784 Tweak last patch. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-15 Bruno Haible + + * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use + instead of since we only need NULL. + Reported by Ben Pfaff . + 2007-10-15 Bruno Haible * doc/gnulib-tool.texi (Initial import): Swap order of -I directives. diff --git a/m4/getaddrinfo.m4 b/m4/getaddrinfo.m4 --- a/m4/getaddrinfo.m4 +++ b/m4/getaddrinfo.m4 @@ -21,7 +21,7 @@ #ifdef HAVE_NETDB_H #include #endif -#include +#include ], [getaddrinfo("", "", NULL, NULL);], [gl_cv_func_getaddrinfo=yes], [gl_cv_func_getaddrinfo=no])]) @@ -35,7 +35,7 @@ #ifdef HAVE_WS2TCPIP_H #include #endif -#include +#include ], [getaddrinfo(NULL, NULL, NULL, NULL);], gl_cv_w32_getaddrinfo=yes) LIBS="$am_save_LIBS"]) if test "$gl_cv_w32_getaddrinfo" = "yes"; then @@ -61,7 +61,7 @@ #ifdef HAVE_WS2TCPIP_H #include #endif -#include +#include ], [gai_strerror (NULL);], [gl_cv_func_gai_strerror=yes], [gl_cv_func_gai_strerror=no])]) @@ -87,7 +87,7 @@ #ifdef HAVE_WINSOCK2_H #include #endif -#include +#include ], [gethostbyname(NULL);], gl_cv_w32_gethostbyname=yes) LIBS="$am_save_LIBS"]) if test "$gl_cv_w32_gethostbyname" = "yes"; then