From 35a32ee9550d22a932f1a71d89653e351405638d Mon Sep 17 00:00:00 2001 From: "Derek R. Price" Date: Mon, 12 Sep 2005 14:25:04 +0000 Subject: [PATCH] * gai_strerror.c: Include config.h when available. Include getaddrinfo.h before other headers to test interface. Reported by Larry Jones . --- lib/ChangeLog | 6 ++++++ lib/gai_strerror.c | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 26ac57714..4c67bfb9b 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-09-12 Derek Price + + * gai_strerror.c: Include config.h when available. Include + getaddrinfo.h before other headers to test interface. + Reported by Larry Jones . + 2005-09-08 Paul Eggert * glob.c (glob, globfree, __glob_pattern_p): Use old-style function diff --git a/lib/gai_strerror.c b/lib/gai_strerror.c index eb30d9833..f2898706e 100644 --- a/lib/gai_strerror.c +++ b/lib/gai_strerror.c @@ -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 +#endif + +#ifndef _LIBC +# include "getaddrinfo.h" +#endif + #include #include #ifdef _LIBC # include #else -# include "getaddrinfo.h" # include "gettext.h" # define _(String) gettext (String) # define N_(String) String -- 2.11.0