Commit 96317659 by Richard Kenner

Removed __NetBSD__ from conditional.

Declare strerror if HAVE_STRERROR is defined; otherwise declare sys_errlist
and sys_nerr.

From-SVN: r9043
parent 2d2daf45
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
that can be traversed by C++ initialization and finalization that can be traversed by C++ initialization and finalization
routines. 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). 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). Per Bothner (bothner@cygnus.com), and John Gilmore (gnu@cygnus.com).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -41,12 +41,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -41,12 +41,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
extern int errno; extern int errno;
#endif #endif
#if defined(bsd4_4) || defined(__NetBSD__) #ifndef HAVE_STRERROR
#if defined(bsd4_4)
extern const char *const sys_errlist[]; extern const char *const sys_errlist[];
#else #else
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif
extern int sys_nerr; extern int sys_nerr;
#else
char *strerror();
#endif
#define COLLECT #define COLLECT
......
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