[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: gai_strerror.h needs config.h
From: |
Derek Price |
Subject: |
FYI: gai_strerror.h needs config.h |
Date: |
Mon, 12 Sep 2005 10:24:28 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
I've committed the attached patch. gai_strerror.c was breaking on the
#include of getaddrinfo.h because `restrict' was not defined properly on
HP-UX 11.00.
2005-09-12 Derek Price <address@hidden>
* gai_strerror.c: Include config.h when available. Include
getaddrinfo.h before other headers to test interface.
Reported by Larry Jones <address@hidden>.
Regards,
Derek
--
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>
Index: lib/gai_strerror.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/gai_strerror.c,v
retrieving revision 1.3
diff -u -p -r1.3 gai_strerror.c
--- lib/gai_strerror.c 14 May 2005 06:03:58 -0000 1.3
+++ lib/gai_strerror.c 12 Sep 2005 14:22:54 -0000
@@ -16,13 +16,20 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#ifndef _LIBC
+# include "getaddrinfo.h"
+#endif
+
#include <stdio.h>
#include <netdb.h>
#ifdef _LIBC
# include <libintl.h>
#else
-# include "getaddrinfo.h"
# include "gettext.h"
# define _(String) gettext (String)
# define N_(String) String
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: gai_strerror.h needs config.h,
Derek Price <=