diff options
Diffstat (limited to 'lang/gcc46/patches/patch-ak')
-rw-r--r-- | lang/gcc46/patches/patch-ak | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/gcc46/patches/patch-ak b/lang/gcc46/patches/patch-ak new file mode 100644 index 00000000000..4e4c173ec20 --- /dev/null +++ b/lang/gcc46/patches/patch-ak @@ -0,0 +1,16 @@ +$NetBSD: patch-ak,v 1.1.1.1 2011/05/15 00:09:56 wiz Exp $ + +--- gcc/ginclude/stddef.h.orig 2011-01-29 22:15:52.000000000 +0000 ++++ gcc/ginclude/stddef.h +@@ -53,6 +53,11 @@ see the files COPYING3 and COPYING.RUNTI + one less case to deal with in the following. */ + #if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__) + #include <machine/ansi.h> ++#if !defined(_MACHINE_ANSI_H_) ++#if defined(_I386_ANSI_H_) || defined(_X86_64_ANSI_H_) ++#define _MACHINE_ANSI_H_ ++#endif ++#endif + #endif + /* On FreeBSD 5, machine/ansi.h does not exist anymore... */ + #if defined (__FreeBSD__) && (__FreeBSD__ >= 5) |