blob: e46ac4cd9358766d8da83456052fb3db7d064fc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ae,v 1.1 2004/02/26 07:47:48 uebayasi Exp $
--- util.c 1997/10/24 14:23:46 1.1
+++ util.c 1997/10/24 14:25:01
@@ -2,6 +2,10 @@
#include "es.h"
+#include <sys/param.h>
+
+#if !(defined(BSD) && BSD >= 199306)
+/* agc - just use the system strerror here */
/* strerror -- turn an error code into a string */
extern char *strerror(int n) {
extern int sys_nerr;
@@ -10,6 +14,7 @@
return "unknown error";
return sys_errlist[n];
}
+#endif
/* uerror -- print a unix error, our version of perror */
extern void uerror(char *s) {
|