aboutsummaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2011-01-29 22:15:52 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2011-01-29 22:15:52 +0000
commit4406d0e91512c5a141976f9bcf4547626b989a1b (patch)
tree221e23fd1237ff8c60f9111de7ad50c4aa0ff935 /gcc/ginclude
parent9a8238741ad5de0567d19f87f292e41746992633 (diff)
downloadgcc-4406d0e91512c5a141976f9bcf4547626b989a1b.zip
gcc-4406d0e91512c5a141976f9bcf4547626b989a1b.tar.gz
gcc-4406d0e91512c5a141976f9bcf4547626b989a1b.tar.bz2
re PR bootstrap/47147 (gcc 4.6 fails to compile on NetBSD)
2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com> PR bootstrap/47147 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as used by NetBSD. From-SVN: r169395
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/stddef.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h
index 89e5b2e..565ef7b 100644
--- a/gcc/ginclude/stddef.h
+++ b/gcc/ginclude/stddef.h
@@ -61,8 +61,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
defined if the corresponding type is *not* defined.
- FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_ */
-#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_)
+ FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
+ NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_ */
+#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) || defined(_X86_64_ANSI_H_) || defined(_I386_ANSI_H_)
#if !defined(_SIZE_T_) && !defined(_BSD_SIZE_T_)
#define _SIZE_T
#endif
@@ -89,7 +90,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#undef _WCHAR_T_
#undef _BSD_WCHAR_T_
#endif
-#endif /* defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) */
+#endif /* defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) || defined(_X86_64_ANSI_H_) || defined(_I386_ANSI_H_) */
/* Sequent's header files use _PTRDIFF_T_ in some conflicting way.
Just ignore it. */
@@ -357,7 +358,8 @@ typedef __WINT_TYPE__ wint_t;
/* In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
are already defined. */
/* BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here. */
-#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_)
+/* NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here. */
+#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) || defined(_X86_64_ANSI_H_) || defined(_I386_ANSI_H_)
/* The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_
are probably typos and should be removed before 2.8 is released. */
#ifdef _GCC_PTRDIFF_T_
@@ -385,7 +387,7 @@ typedef __WINT_TYPE__ wint_t;
#undef _WCHAR_T_
#undef _BSD_WCHAR_T_
#endif
-#endif /* _ANSI_H_ || _MACHINE_ANSI_H_ */
+#endif /* _ANSI_H_ || _MACHINE_ANSI_H_ || _X86_64_ANSI_H_ || _I386_ANSI_H_ */
#endif /* __sys_stdtypes_h */