From ddaf94095891a21cedd6a18d9178e4444fb937a7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 12 Jan 2001 10:53:48 +0000 Subject: Patch from James Graves to better handle m68k. Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik --- include/features.h | 8 ++++++++ include/unistd.h | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/features.h b/include/features.h index 634590f49..f51ebd7e2 100644 --- a/include/features.h +++ b/include/features.h @@ -24,19 +24,27 @@ #define __P(x) x #define __PMT(x) x +#ifndef __const #define __const const +#endif /* Almost ansi */ #if __STDC__ != 1 +#ifndef const #define const +#endif #define volatile #endif #else /* K&R */ #define __P(x) () +#ifndef __const #define __const +#endif +#ifndef const #define const +#endif #define volatile #endif diff --git a/include/unistd.h b/include/unistd.h index 1ccd29480..916d972a0 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1008,6 +1008,10 @@ extern int pthread_atfork __P ((void (*__prepare) (void), void (*__child) (void))); #endif +#ifdef __VFORK_MACRO__ +#include +#endif + __END_DECLS #endif /* unistd.h */ -- cgit v1.2.3