summaryrefslogtreecommitdiff
path: root/shells/es
diff options
context:
space:
mode:
authoragc <agc>1997-10-24 14:34:28 +0000
committeragc <agc>1997-10-24 14:34:28 +0000
commit7149f33bed76dcdf2ad4b48f6296dc1beca978dc (patch)
tree9d041eaed04466e04002a43c7b746add953b29ee /shells/es
parent2c3095453acf58da4feb2314318bc46e1ea1e870 (diff)
downloadpkgsrc-7149f33bed76dcdf2ad4b48f6296dc1beca978dc.tar.gz
Make es compile on NetBSD.
Diffstat (limited to 'shells/es')
-rw-r--r--shells/es/patches/patch-aa21
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) {