From 8f7e2792be8cc28e8f85f4e3d027f29a7eb08e06 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 24 Oct 1997 14:34:28 +0000 Subject: Make es compile on NetBSD. --- shells/es/patches/patch-aa | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'shells/es/patches') diff --git a/shells/es/patches/patch-aa b/shells/es/patches/patch-aa index 1f649e60e89..75def50244d 100644 --- a/shells/es/patches/patch-aa +++ b/shells/es/patches/patch-aa @@ -91,3 +91,24 @@ /* setjmp */ +--- 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 ++ ++#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) { -- cgit v1.2.3