summaryrefslogtreecommitdiff
path: root/shells/rc/patches
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-12-19 09:29:15 +0000
committeragc <agc@pkgsrc.org>1997-12-19 09:29:15 +0000
commit2128603c2cf7484ab1261f90a78f767d9e8843b7 (patch)
tree9ca57d78b64a487dfdb9d22d46784a249e43ec08 /shells/rc/patches
parentb4c566e30ba379c137222e42dc08649011f24e92 (diff)
downloadpkgsrc-2128603c2cf7484ab1261f90a78f767d9e8843b7.tar.gz
Comment out mknod prototype in rc's proto.h on 4.4BSD-derived OSes.
rc shouldn't be prototyping this kind of thing, and it will break when compiled with post-1.3 sources. Pointed out by Bill Coldwell.
Diffstat (limited to 'shells/rc/patches')
-rw-r--r--shells/rc/patches/patch-aa20
1 files changed, 20 insertions, 0 deletions
diff --git a/shells/rc/patches/patch-aa b/shells/rc/patches/patch-aa
index 809ac1455f2..a55b3d73968 100644
--- a/shells/rc/patches/patch-aa
+++ b/shells/rc/patches/patch-aa
@@ -119,3 +119,23 @@
if (errno > sys_nerr)
return;
if (s != NULL)
+--- proto.h 1997/12/19 09:22:28 1.1
++++ proto.h 1997/12/19 09:23:51
+@@ -13,6 +13,7 @@
+ You can override these definitions with compile-line definitions
+ of the same macros.
+ */
++#include <sys/param.h>
+
+ #ifndef ALIGN_T
+ typedef long ALIGN_T;
+@@ -65,7 +66,8 @@
+ extern int getgroups(int, int *);
+ /*extern int ioctl(int, long,...);*/ /* too much trouble leaving this uncommented */
+ extern int isatty(int);
+-#ifndef SYSVR4 /* declares AND defines this in sys/stat.h!! */
++#if !defined(SYSVR4) && !(defined(BSD) && BSD >= 199306)
++/* SVR4 declares AND defines this in sys/stat.h!! */
+ extern int mknod(const char *, int, int);
+ #endif
+ extern int pipe(int *);