From 826c56acc9f7ca7cec43a310888a7bca142f9f16 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 8 Jan 1994 21:24:35 +0000 Subject: [PATCH] Don't declare sys_errlist; declare strerror instead. (relocate_fd): Call strerror instead of using sys_errlist. --- src/callproc.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/callproc.c b/src/callproc.c index 174ffa214d4..c9718e7fa04 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1,11 +1,11 @@ /* Synchronous subprocess invocation for GNU Emacs. - Copyright (C) 1985, 1986, 1987, 1988, 1993 Free Software Foundation, Inc. + Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) +the Free Software Foundation; either version 2, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -24,9 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include extern int errno; -#ifndef VMS -extern char *sys_errlist[]; -#endif +extern char *strerror (); /* Define SIGCHLD as an alias for SIGCLD. */ @@ -674,9 +672,10 @@ relocate_fd (fd, min) if (new == -1) { char *message1 = "Error while setting up child: "; + char *errmessage = strerror (errno); char *message2 = "\n"; write (2, message1, strlen (message1)); - write (2, sys_errlist[errno], strlen (sys_errlist[errno])); + write (2, errmessage, strlen (errmessage)); write (2, message2, strlen (message2)); _exit (1); } -- 2.39.5