From 2128603c2cf7484ab1261f90a78f767d9e8843b7 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 19 Dec 1997 09:29:15 +0000 Subject: 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. --- shells/rc/patches/patch-aa | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'shells/rc/patches') 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 + + #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 *); -- cgit v1.2.3