changeset 5543:dbc1d920ef5c

Don't declare sys_nerr. Don't declare sys_errlist unless #ifdef VMS. Declare strerror instead. (wait_reading_process_input): Call strerror instead of using sys_errlist.
author Roland McGrath <roland@gnu.org>
date Sun, 09 Jan 1994 23:06:40 +0000
parents 004856d1b311
children ab9c9a611b5a
files src/process.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Sun Jan 09 22:39:21 1994 +0000
+++ b/src/process.c	Sun Jan 09 23:06:40 1994 +0000
@@ -1,5 +1,5 @@
 /* Asynchronous subprocess control for GNU Emacs.
-   Copyright (C) 1985, 1986, 1987, 1988, 1993 Free Software Foundation, Inc.
+   Copyright (C) 1985, 86, 87, 88, 93, 94 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -125,9 +125,11 @@
 
 #include "syswait.h"
 
-extern errno;
-extern sys_nerr;
+extern int errno;
+extern char *strerror ();
+#ifdef VMS
 extern char *sys_errlist[];
+#endif
 
 #ifndef VMS
 #ifndef BSD4_1
@@ -1877,7 +1879,7 @@
 #endif
 	    }
 	  else
-	    error("select error: %s", sys_errlist[xerrno]);
+	    error("select error: %s", strerror (xerrno));
 	}
 #if defined(sun) && !defined(USG5_4)
       else if (nfds > 0 && FD_ISSET (keyboard_descriptor, &Available)