diff options
author | agc <agc@pkgsrc.org> | 1997-10-24 14:34:28 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1997-10-24 14:34:28 +0000 |
commit | 8f7e2792be8cc28e8f85f4e3d027f29a7eb08e06 (patch) | |
tree | 9d041eaed04466e04002a43c7b746add953b29ee /shells | |
parent | c1af73ac789097b0369e7f83bbdc6d88b305bb80 (diff) | |
download | pkgsrc-8f7e2792be8cc28e8f85f4e3d027f29a7eb08e06.tar.gz |
Make es compile on NetBSD.
Diffstat (limited to 'shells')
-rw-r--r-- | shells/es/patches/patch-aa | 21 |
1 files changed, 21 insertions, 0 deletions
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 <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) { |