From b062d1fe4413a3d399f0da62b815217f8bd33e2c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 9 Jan 1994 23:06:40 +0000 Subject: [PATCH] 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. --- src/process.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/process.c b/src/process.c index b8fac56ae5..d43b4880f7 100644 --- a/src/process.c +++ b/src/process.c @@ -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 @@ static Lisp_Object stream_process; #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 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) #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) -- 2.20.1