aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-09-15 15:38:29 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-09-15 15:38:29 -0400
commit2c793b325101980a9ff28757fac1d8d583494479 (patch)
treee3782157f4ee954523d6aedfda92a5de15efbeb7
parentdd0328d31533cc8c575b934a4d62a67b54ea4caa (diff)
downloadgcc-2c793b325101980a9ff28757fac1d8d583494479.zip
gcc-2c793b325101980a9ff28757fac1d8d583494479.tar.gz
gcc-2c793b325101980a9ff28757fac1d8d583494479.tar.bz2
Rework last change so it's done like collect2.c.
From-SVN: r8090
-rw-r--r--gcc/gcc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index a1b5bb8..2a9f145 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -35,7 +35,7 @@ compilation is specified by a string called a "spec". */
#include <signal.h>
#include <sys/stat.h>
#include <sys/file.h> /* May get R_OK, etc. on some systems. */
-#include <sys/errno.h>
+#include <errno.h>
#include "config.h"
#include "obstack.h"
@@ -132,7 +132,11 @@ compilation is specified by a string called a "spec". */
extern void free ();
extern char *getenv ();
-extern int errno, sys_nerr;
+#ifndef errno
+extern int errno;
+#endif
+
+extern int sys_nerr;
#if defined(bsd4_4) || defined(__NetBSD__)
extern const char *const sys_errlist[];
#else