# HG changeset patch # User Bruno Haible # Date 1192446724 -7200 # Node ID 9d1ed7b3746ad203376b3c4601031389e251515a # Parent b9402be3510c0957b4b538531ea193d2c67c568f Ensure NULL is defined, before using it. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-15 Bruno Haible + + * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include + before using NULL. + 2007-10-15 Simon Josefsson * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers. diff --git a/m4/getaddrinfo.m4 b/m4/getaddrinfo.m4 --- a/m4/getaddrinfo.m4 +++ b/m4/getaddrinfo.m4 @@ -35,6 +35,7 @@ #ifdef HAVE_WS2TCPIP_H #include #endif +#include ], [getaddrinfo(NULL, NULL, NULL, NULL);], gl_cv_w32_getaddrinfo=yes) LIBS="$am_save_LIBS"]) if test "$gl_cv_w32_getaddrinfo" = "yes"; then @@ -60,6 +61,7 @@ #ifdef HAVE_WS2TCPIP_H #include #endif +#include ], [gai_strerror (NULL);], [gl_cv_func_gai_strerror=yes], [gl_cv_func_gai_strerror=no])]) @@ -85,6 +87,7 @@ #ifdef HAVE_WINSOCK2_H #include #endif +#include ], [gethostbyname(NULL);], gl_cv_w32_gethostbyname=yes) LIBS="$am_save_LIBS"]) if test "$gl_cv_w32_gethostbyname" = "yes"; then