summaryrefslogtreecommitdiff
path: root/shells/es/patches/patch-ae
blob: e58daa6c0cb3e9b0fc6fc0010c9fb31d3874433c (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.2 2005/03/10 15:18:31 tv Exp $

--- util.c.orig	1995-05-30 07:13:52.000000000 -0400
+++ util.c
@@ -2,6 +2,10 @@
 
 #include "es.h"
 
+#include <sys/param.h>
+
+#if !(defined(BSD) && BSD >= 199306) && !defined(__INTERIX)
+/* 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 @@ extern char *strerror(int n) {
 		return "unknown error";
 	return sys_errlist[n];
 }
+#endif
 
 /* uerror -- print a unix error, our version of perror */
 extern void uerror(char *s) {