Tweak last patch.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Oct 2007 18:29:01 +0000 (20:29 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 Oct 2007 18:29:01 +0000 (20:29 +0200)
ChangeLog
m4/getaddrinfo.m4

index 417dbc8c96cf1852658187df11fecb7936d9e8e5..257e9e61b35b7f40e39f6891f9a776c17aa31bde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-15  Bruno Haible  <bruno@clisp.org>
+
+       * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
+       <stddef.h> instead of <stdlib.h> since we only need NULL.
+       Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
 2007-10-15  Bruno Haible  <bruno@clisp.org>
 
        * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
index 0234c70d946495509e834da454365f964bd1dae6..5d36c195053839d83b298f8220b5210289ed5f68 100644 (file)
@@ -21,7 +21,7 @@ AC_DEFUN([gl_GETADDRINFO],
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#include <stdlib.h>
+#include <stddef.h>
 ], [getaddrinfo("", "", NULL, NULL);],
       [gl_cv_func_getaddrinfo=yes],
       [gl_cv_func_getaddrinfo=no])])
@@ -35,7 +35,7 @@ AC_DEFUN([gl_GETADDRINFO],
 #ifdef HAVE_WS2TCPIP_H
 #include <ws2tcpip.h>
 #endif
-#include <stdlib.h>
+#include <stddef.h>
 ], [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 @@ AC_DEFUN([gl_GETADDRINFO],
 #ifdef HAVE_WS2TCPIP_H
 #include <ws2tcpip.h>
 #endif
-#include <stdlib.h>
+#include <stddef.h>
 ], [gai_strerror (NULL);],
         [gl_cv_func_gai_strerror=yes],
         [gl_cv_func_gai_strerror=no])])
@@ -87,7 +87,7 @@ AC_DEFUN([gl_PREREQ_GETADDRINFO], [
 #ifdef HAVE_WINSOCK2_H
 #include <winsock2.h>
 #endif
-#include <stdlib.h>
+#include <stddef.h>
 ], [gethostbyname(NULL);], gl_cv_w32_gethostbyname=yes)
     LIBS="$am_save_LIBS"])
     if test "$gl_cv_w32_gethostbyname" = "yes"; then