bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test for getaddrinfo() broken on Tru64 UNIX 5.1


From: Bruno Haible
Subject: Re: Test for getaddrinfo() broken on Tru64 UNIX 5.1
Date: Mon, 15 Oct 2007 12:35:30 +0200
User-agent: KMail/1.5.4

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]