Simon,
> > So, the above should be fixed as well.
>
> Fixed, thanks.
Hmm. How about making sure that NULL is actually defined, before using it?
Proposed patch:
*** m4/getaddrinfo.m4.orig 2007-10-15 12:33:54.000000000 +0200
--- m4/getaddrinfo.m4 2007-10-15 12:30:25.000000000 +0200
***************
*** 35,40 ****
--- 35,41 ----
#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,65 ****
--- 61,67 ----
#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,90 ****
--- 87,93 ----
#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