* gai_strerror.c: Include config.h when available. Include
authorDerek R. Price <derek@ximbiot.com>
Mon, 12 Sep 2005 14:25:04 +0000 (14:25 +0000)
committerDerek R. Price <derek@ximbiot.com>
Mon, 12 Sep 2005 14:25:04 +0000 (14:25 +0000)
getaddrinfo.h before other headers to test interface.
Reported by Larry Jones <lawrence.jones@ugs.com>.

lib/ChangeLog
lib/gai_strerror.c

index 26ac577..4c67bfb 100644 (file)
@@ -1,3 +1,9 @@
+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
index eb30d98..f289870 100644 (file)
    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