Commit 5d672cd7 by Jim Wilson

(sys_errlist): Conditionalize declaration for BSD 4.4.

From-SVN: r5843
parent 9bbd1091
......@@ -187,7 +187,11 @@ extern FILE *fdopen ();
extern char *version_string;
extern struct tm *localtime ();
extern int sys_nerr;
#if defined(bsd4_4)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
#endif
extern int parse_escape ();
#ifndef errno
......
......@@ -41,6 +41,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
extern int errno;
#endif
#if defined(bsd4_4)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
#endif
extern int sys_nerr;
#define COLLECT
#include "config.h"
......@@ -283,8 +290,6 @@ char *
my_strerror (e)
int e;
{
extern char *sys_errlist[];
extern int sys_nerr;
static char buffer[30];
if (!e)
......
......@@ -104,7 +104,11 @@ extern void free ();
extern char *getenv ();
extern int errno, sys_nerr;
#if defined(bsd4_4)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
#endif
extern int execv (), execvp ();
......
......@@ -80,7 +80,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef getopt
extern int errno;
#if defined(bsd4_4)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
#endif
extern char *version_string;
/* Systems which are compatible only with POSIX 1003.1-1988 (but *not*
......
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