aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-02-22 20:28:17 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-02-22 20:28:17 -0500
commit96317659b6cfb86f137642008e5d711ccf92eae9 (patch)
tree1eba4bfd11ffe65ef6c05ac89ac433053237d8ba /gcc/collect2.c
parent2d2daf45b6ea05ec64e8148e54a13a6c4b3a8c0e (diff)
downloadgcc-96317659b6cfb86f137642008e5d711ccf92eae9.zip
gcc-96317659b6cfb86f137642008e5d711ccf92eae9.tar.gz
gcc-96317659b6cfb86f137642008e5d711ccf92eae9.tar.bz2
Removed __NetBSD__ from conditional.
Declare strerror if HAVE_STRERROR is defined; otherwise declare sys_errlist and sys_nerr. From-SVN: r9043
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 960f969..dc91a94 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -2,9 +2,9 @@
that can be traversed by C++ initialization and finalization
routines.
- Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
Contributed by Chris Smith (csmith@convex.com).
- Heavily modified by Michael Meissner (meissner@osf.org),
+ Heavily modified by Michael Meissner (meissner@cygnus.com),
Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com).
This file is part of GNU CC.
@@ -41,12 +41,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
extern int errno;
#endif
-#if defined(bsd4_4) || defined(__NetBSD__)
+#ifndef HAVE_STRERROR
+#if defined(bsd4_4)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
#endif
extern int sys_nerr;
+#else
+char *strerror();
+#endif
#define COLLECT