diff options
| author | Roland McGrath | 1994-01-09 23:06:40 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-01-09 23:06:40 +0000 |
| commit | b062d1fe4413a3d399f0da62b815217f8bd33e2c (patch) | |
| tree | 0591b882b0ce3df9eabb51ef6f2bd691de3925e2 /src | |
| parent | a6609a3635b71986ef36b21dd88fa34228cf01d7 (diff) | |
| download | emacs-b062d1fe4413a3d399f0da62b815217f8bd33e2c.tar.gz emacs-b062d1fe4413a3d399f0da62b815217f8bd33e2c.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c index b8fac56ae5a..d43b4880f7b 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Asynchronous subprocess control for GNU Emacs. | 1 | /* Asynchronous subprocess control for GNU Emacs. |
| 2 | Copyright (C) 1985, 1986, 1987, 1988, 1993 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 86, 87, 88, 93, 94 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -125,9 +125,11 @@ static Lisp_Object stream_process; | |||
| 125 | 125 | ||
| 126 | #include "syswait.h" | 126 | #include "syswait.h" |
| 127 | 127 | ||
| 128 | extern errno; | 128 | extern int errno; |
| 129 | extern sys_nerr; | 129 | extern char *strerror (); |
| 130 | #ifdef VMS | ||
| 130 | extern char *sys_errlist[]; | 131 | extern char *sys_errlist[]; |
| 132 | #endif | ||
| 131 | 133 | ||
| 132 | #ifndef VMS | 134 | #ifndef VMS |
| 133 | #ifndef BSD4_1 | 135 | #ifndef BSD4_1 |
| @@ -1877,7 +1879,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) | |||
| 1877 | #endif | 1879 | #endif |
| 1878 | } | 1880 | } |
| 1879 | else | 1881 | else |
| 1880 | error("select error: %s", sys_errlist[xerrno]); | 1882 | error("select error: %s", strerror (xerrno)); |
| 1881 | } | 1883 | } |
| 1882 | #if defined(sun) && !defined(USG5_4) | 1884 | #if defined(sun) && !defined(USG5_4) |
| 1883 | else if (nfds > 0 && FD_ISSET (keyboard_descriptor, &Available) | 1885 | else if (nfds > 0 && FD_ISSET (keyboard_descriptor, &Available) |