diff options
author | garbled <garbled@pkgsrc.org> | 1998-08-23 05:52:46 +0000 |
---|---|---|
committer | garbled <garbled@pkgsrc.org> | 1998-08-23 05:52:46 +0000 |
commit | c4cb8bc28a984965a09913dea5ec944af38cc1fa (patch) | |
tree | 53dc8b30ee3217c1b26d599372ba74e946a2e354 /shells/rc/patches/patch-ac | |
parent | 270f3416e7749f46e4bcc685adf38502e4667bc0 (diff) | |
download | pkgsrc-c4cb8bc28a984965a09913dea5ec944af38cc1fa.tar.gz |
Fix compilation on alpha. Closes PR 5768 (Tim Rightnour)
Diffstat (limited to 'shells/rc/patches/patch-ac')
-rw-r--r-- | shells/rc/patches/patch-ac | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/shells/rc/patches/patch-ac b/shells/rc/patches/patch-ac new file mode 100644 index 00000000000..bc7f8cab8f2 --- /dev/null +++ b/shells/rc/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.1 1998/08/23 05:52:47 garbled Exp $ +*** utils.c.orig Wed Aug 20 15:26:52 1997 +--- utils.c Wed Aug 20 15:28:11 1997 +*************** +*** 5,10 **** +--- 5,12 ---- + #include "rc.h" + #include "jbwrap.h" + ++ #include <sys/param.h> ++ + /* print error with line number on noninteractive shells (i.e., scripts) */ + + extern void pr_error(char *s) { +*************** +*** 19,26 **** +--- 21,30 ---- + /* our perror */ + + extern void uerror(char *s) { ++ #if !(defined(BSD) && BSD >= 199306) + extern int sys_nerr; + extern char *sys_errlist[]; ++ #endif + if (errno > sys_nerr) + return; + if (s != NULL) |