aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/timer.c')
-rw-r--r--lib-src/timer.c15
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)
300 for (;;) 300 for (;;)
301 pause (); 301 pause ();
302} 302}
303
304#ifndef HAVE_STRERROR
305char *
306strerror (errnum)
307 int errnum;
308{
309 extern char *sys_errlist[];
310 extern int sys_nerr;
311
312 if (errnum >= 0 && errnum < sys_nerr)
313 return sys_errlist[errnum];
314 return (char *) "Unknown error";
315}
316
317#endif /* ! HAVE_STRERROR */
303 318
304/* timer.c ends here */ 319/* timer.c ends here */