diff lib/gai_strerror.c @ 6221:ee77add4f839

* 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>.
author Derek R. Price <derek@ximbiot.com>
date Mon, 12 Sep 2005 14:25:04 +0000 (2005-09-12)
parents a48fb0e98c8c
children 29248383a0c7
line wrap: on
line diff
--- 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