strerror.c: Include config.h...
authorIan Lance Taylor <ian@wasabisystems.com>
Tue, 13 Apr 2004 19:46:01 +0000 (19:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 13 Apr 2004 19:46:01 +0000 (19:46 +0000)
* strerror.c: Include config.h, and redefine sys_nerr and
sys_errlist, before including ansidecl.h and libiberty.h.

From-SVN: r80650

libiberty/ChangeLog
libiberty/strerror.c

index 7da2d46d60820fe3385af408385ffa5ca433cbc8..ec90d1a395c9223b4990aac5846f19c470c4f9c4 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-13  Ian Lance Taylor  <ian@wasabisystems.com>
+
+       * strerror.c: Include config.h, and redefine sys_nerr and
+       sys_errlist, before including ansidecl.h and libiberty.h.
+
 2004-04-13  Jeff Law  <law@redhat.com>
 
        * hashtab.c (htab_remove_elt_with_hash): New function.
index 83a5992b4dd91f665729248e01d9f45a45404b40..c0edb47e0c80791c3bb290ef709eab17fd4804d4 100644 (file)
@@ -2,9 +2,6 @@
    Written by Fred Fish.  fnf@cygnus.com
    This file is in the public domain.  --Per Bothner.  */
 
-#include "ansidecl.h"
-#include "libiberty.h"
-
 #include "config.h"
 
 #ifdef HAVE_SYS_ERRLIST
@@ -17,6 +14,9 @@
 #define sys_errlist sys_errlist__
 #endif
 
+#include "ansidecl.h"
+#include "libiberty.h"
+
 #include <stdio.h>
 #include <errno.h>