diff options
author | Roland McGrath <roland@gnu.org> | 1994-01-08 22:27:30 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-01-08 22:27:30 +0000 |
commit | b91b3a4302bca5c98a8d3ec218525721288461f3 (patch) | |
tree | 911b5ec6474a36d069126f3fb5f67477f1d7709b /lib-src/=timer.c | |
parent | 8ea6477b73a0b0d4ffb24a044650ee95634d5808 (diff) | |
download | emacs-b91b3a4302bca5c98a8d3ec218525721288461f3.tar.gz |
[! HAVE_STRERROR] (strerror): Define the function.
Diffstat (limited to 'lib-src/=timer.c')
-rw-r--r-- | lib-src/=timer.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib-src/=timer.c b/lib-src/=timer.c index 8676b196597..cb7c4c0b2b1 100644 --- a/lib-src/=timer.c +++ b/lib-src/=timer.c @@ -300,5 +300,20 @@ main (argc, argv) for (;;) pause (); } + +#ifndef HAVE_STRERROR +char * +strerror (errnum) + int errnum; +{ + extern char *sys_errlist[]; + extern int sys_nerr; + + if (errnum >= 0 && errnum < sys_nerr) + return sys_errlist[errnum]; + return (char *) "Unknown error"; +} + +#endif /* ! HAVE_STRERROR */ /* timer.c ends here */ |