diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-01-12 10:53:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-01-12 10:53:48 +0000 |
commit | ddaf94095891a21cedd6a18d9178e4444fb937a7 (patch) | |
tree | b47bcefa33533e4f41ecce4e3a1bee1d215e006e /include | |
parent | 77879554671206102471bb282accb3251395d151 (diff) |
Patch from James Graves <jgraves@deltamobile.com> to better handle m68k.
Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less)
should update and recompile.
-Erik
Diffstat (limited to 'include')
-rw-r--r-- | include/features.h | 8 | ||||
-rw-r--r-- | include/unistd.h | 4 |
2 files changed, 12 insertions, 0 deletions
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 <bits/vfork.h> +#endif + __END_DECLS #endif /* unistd.h */ |