From: Derek R. Price Date: Mon, 12 Sep 2005 14:25:04 +0000 (+0000) Subject: * gai_strerror.c: Include config.h when available. Include X-Git-Tag: cvs-readonly~2965 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=35a32ee9550d22a932f1a71d89653e351405638d;p=gnulib.git * gai_strerror.c: Include config.h when available. Include getaddrinfo.h before other headers to test interface. Reported by Larry Jones . --- 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