summaryrefslogtreecommitdiff
path: root/lib/gai_strerror.c
diff options
context:
space:
mode:
authorDerek R. Price <derek@ximbiot.com>2005-09-12 14:25:04 +0000
committerDerek R. Price <derek@ximbiot.com>2005-09-12 14:25:04 +0000
commit35a32ee9550d22a932f1a71d89653e351405638d (patch)
tree57bef707078ffe2f676442edef9de70ef7d9847a /lib/gai_strerror.c
parent7d6a7cdc68ca5d4a1d654e4b3a6053fc12078363 (diff)
downloadgnulib-35a32ee9550d22a932f1a71d89653e351405638d.tar.gz
* gai_strerror.c: Include config.h when available. Include
getaddrinfo.h before other headers to test interface. Reported by Larry Jones <lawrence.jones@ugs.com>.
Diffstat (limited to 'lib/gai_strerror.c')
-rw-r--r--lib/gai_strerror.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/gai_strerror.c b/lib/gai_strerror.c
index eb30d98334..f2898706e6 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 <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