[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in getaddrinfo module
From: |
Eric Blake |
Subject: |
Re: bug in getaddrinfo module |
Date: |
Tue, 08 Nov 2005 20:36:53 +0000 |
> It looks like getaddrinfo.h is using
> #ifndef HAVE_DECL_GETADDRINFO, but AC_CHECK_DECLS
> uses #define HAVE_DECL_GETADDRINFO 0 in config.h.
A quick grep shows that inet_ntop.h suffers from the same
bug. The 6 other occurances of ifndef.*HAVE_DECL in lib/*.[ch]
intentionally cause compile-time errors, so they are okay.
2005-11-08 Eric Blake <address@hidden>
* inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
Index: lib/inet_ntop.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/inet_ntop.h,v
retrieving revision 1.4
diff -u -r1.4 inet_ntop.h
--- lib/inet_ntop.h 28 Oct 2005 13:53:31 -0000 1.4
+++ lib/inet_ntop.h 8 Nov 2005 20:30:07 -0000
@@ -39,7 +39,7 @@
For more details, see the POSIX:2001 specification
<http://www.opengroup.org/susv3xsh/inet_ntop.html>. */
-#ifndef HAVE_DECL_INET_NTOP
+#if !HAVE_DECL_INET_NTOP
extern const char *inet_ntop (int af, const void *restrict src,
char *restrict dst, socklen_t cnt);
#endif
--
Eric Blake