Commit 2c793b32 by Richard Kenner

Rework last change so it's done like collect2.c.

From-SVN: r8090
parent dd0328d3
...@@ -35,7 +35,7 @@ compilation is specified by a string called a "spec". */ ...@@ -35,7 +35,7 @@ compilation is specified by a string called a "spec". */
#include <signal.h> #include <signal.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/file.h> /* May get R_OK, etc. on some systems. */ #include <sys/file.h> /* May get R_OK, etc. on some systems. */
#include <sys/errno.h> #include <errno.h>
#include "config.h" #include "config.h"
#include "obstack.h" #include "obstack.h"
...@@ -132,7 +132,11 @@ compilation is specified by a string called a "spec". */ ...@@ -132,7 +132,11 @@ compilation is specified by a string called a "spec". */
extern void free (); extern void free ();
extern char *getenv (); extern char *getenv ();
extern int errno, sys_nerr; #ifndef errno
extern int errno;
#endif
extern int sys_nerr;
#if defined(bsd4_4) || defined(__NetBSD__) #if defined(bsd4_4) || defined(__NetBSD__)
extern const char *const sys_errlist[]; extern const char *const sys_errlist[];
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment