summaryrefslogtreecommitdiff
path: root/plan9/rc
diff options
context:
space:
mode:
authoragc <agc>1997-12-19 09:29:15 +0000
committeragc <agc>1997-12-19 09:29:15 +0000
commita1d016168dc8acac8fec3bac4e22b509326607cd (patch)
tree9ca57d78b64a487dfdb9d22d46784a249e43ec08 /plan9/rc
parent6ade9f28bbbf820726eae28d61d57579d49a0b06 (diff)
downloadpkgsrc-a1d016168dc8acac8fec3bac4e22b509326607cd.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 'plan9/rc')
-rw-r--r--plan9/rc/patches/patch-aa20
1 files changed, 20 insertions, 0 deletions
diff --git a/plan9/rc/patches/patch-aa b/plan9/rc/patches/patch-aa
index 809ac1455f2..a55b3d73968 100644
--- a/plan9/rc/patches/patch-aa
+++ b/plan9/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 *);