Mercurial > emacs
changeset 19581:30f977ea74db
Include errno.h.
(init_buffer) [HAVE_GETCWD]: Fix error message for getcwd failure.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 27 Aug 1997 20:01:05 +0000 |
parents | a81fbc76f500 |
children | 1289a4779e68 |
files | src/buffer.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Wed Aug 27 19:59:41 1997 +0000 +++ b/src/buffer.c Wed Aug 27 20:01:05 1997 +0000 @@ -23,6 +23,9 @@ #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> +#include <errno.h> + +extern int errno; #ifndef MAXPATHLEN /* in 4.1, param.h fails to define this. */ @@ -3708,7 +3711,7 @@ strcpy (buf, pwd); #ifdef HAVE_GETCWD else if (getcwd (buf, MAXPATHLEN+1) == 0) - fatal ("`getcwd' failed: %s\n", buf); + fatal ("`getcwd' failed: %s\n", strerror (errno)); #else else if (getwd (buf) == 0) fatal ("`getwd' failed: %s\n", buf);