2004-07-10 16:38:08 +02:00
|
|
|
$NetBSD: patch-ab,v 1.2 2004/07/10 14:38:08 wiz Exp $
|
1998-08-07 13:08:53 +02:00
|
|
|
|
2004-07-10 16:38:08 +02:00
|
|
|
--- src/error.c.orig 1995-06-02 15:16:00.000000000 +0200
|
|
|
|
+++ src/error.c
|
|
|
|
@@ -38,8 +38,10 @@ void fatal_error(char *fmt, ...) {
|
|
|
|
}
|
|
|
|
|
|
|
|
static char *strerr(void) {
|
|
|
|
+#ifndef BSD
|
|
|
|
extern int sys_nerr;
|
|
|
|
extern char *sys_errlist[];
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
return errno > 0 && errno < sys_nerr ?
|
|
|
|
sys_errlist[errno] : "unknown error";
|