Mercurial > hg > octave-nkf > gnulib-hg
changeset 9344:9d1ed7b3746a
Ensure NULL is defined, before using it.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 15 Oct 2007 13:12:04 +0200 |
parents | b9402be3510c |
children | 233439805e0a |
files | ChangeLog m4/getaddrinfo.m4 |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-15 Bruno Haible <bruno@clisp.org> + + * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include + <stdlib.h> before using NULL. + 2007-10-15 Simon Josefsson <simon@josefsson.org> * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
--- a/m4/getaddrinfo.m4 +++ b/m4/getaddrinfo.m4 @@ -35,6 +35,7 @@ #ifdef HAVE_WS2TCPIP_H #include <ws2tcpip.h> #endif +#include <stdlib.h> ], [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 <ws2tcpip.h> #endif +#include <stdlib.h> ], [gai_strerror (NULL);], [gl_cv_func_gai_strerror=yes], [gl_cv_func_gai_strerror=no])]) @@ -85,6 +87,7 @@ #ifdef HAVE_WINSOCK2_H #include <winsock2.h> #endif +#include <stdlib.h> ], [gethostbyname(NULL);], gl_cv_w32_gethostbyname=yes) LIBS="$am_save_LIBS"]) if test "$gl_cv_w32_gethostbyname" = "yes"; then