getaddrinfo.h before other headers to test interface.
Reported by Larry Jones <lawrence.jones@ugs.com>.
+2005-09-12 Derek Price <derek@ximbiot.com>
+
+ * 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>.
+
2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
* glob.c (glob, globfree, __glob_pattern_p): Use old-style function
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