OSDN Git Service

Rework last change so it's done like collect2.c.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Sep 1994 19:38:29 +0000 (19:38 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Sep 1994 19:38:29 +0000 (19:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8090 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/gcc.c

index a1b5bb8..2a9f145 100644 (file)
--- 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