diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2006-01-06 18:56:46 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2006-01-06 18:56:46 +0000 |
commit | d45b1fa15287c016bd22098688b516dbda5b2f60 (patch) | |
tree | c511637fb5d8fe01e12eda2fc05bd90979c9eafe /gnu/usr.bin/gcc | |
parent | 888b6d1179ebf06e9daf997686bb7dbb66282dea (diff) |
Include <sys/types.h> and don't define away __size_t
Based on existing bits for FreeBSD 5
Diffstat (limited to 'gnu/usr.bin/gcc')
-rw-r--r-- | gnu/usr.bin/gcc/gcc/ginclude/stddef.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/gcc/gcc/ginclude/stddef.h b/gnu/usr.bin/gcc/gcc/ginclude/stddef.h index 2cd15899af1..8b37c5e7c9f 100644 --- a/gnu/usr.bin/gcc/gcc/ginclude/stddef.h +++ b/gnu/usr.bin/gcc/gcc/ginclude/stddef.h @@ -56,8 +56,8 @@ Boston, MA 02111-1307, USA. */ #if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__) #include <machine/ansi.h> #endif -/* On FreeBSD 5, machine/ansi.h does not exist anymore... */ -#if defined (__FreeBSD__) && (__FreeBSD__ >= 5) +/* On FreeBSD 5 and OpenBSD 3.9, machine/ansi.h does not exist anymore... */ +#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__OpenBSD__) #include <sys/_types.h> #endif @@ -201,8 +201,8 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; #define ___int_size_t_h #define _GCC_SIZE_T #define _SIZET_ -#if defined (__FreeBSD__) && (__FreeBSD__ >= 5) -/* __size_t is a typedef on FreeBSD 5!, must not trash it. */ +#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__OpenBSD__) +/* __size_t is a typedef on FreeBSD 5 and OpenBSD 3.9!, must not trash it. */ #else #define __size_t #endif |