diff options
author | markd <markd@pkgsrc.org> | 2009-03-30 10:57:02 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2009-03-30 10:57:02 +0000 |
commit | 00e015145891eff3ae89e79e30536bde289b1c4c (patch) | |
tree | 90680e9ddb3d425726a40122455c0560f08bca93 /lang/gcc34/patches | |
parent | 6786742bc71d3e350154d5c6f67b1b3586e2bd1f (diff) | |
download | pkgsrc-00e015145891eff3ae89e79e30536bde289b1c4c.tar.gz |
Fix build on NetBSD 5.x using same patch Joerg applied to gcc3.
Diffstat (limited to 'lang/gcc34/patches')
-rw-r--r-- | lang/gcc34/patches/patch-at | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/gcc34/patches/patch-at b/lang/gcc34/patches/patch-at new file mode 100644 index 00000000000..f4d72aec34c --- /dev/null +++ b/lang/gcc34/patches/patch-at @@ -0,0 +1,24 @@ +$NetBSD: patch-at,v 1.1 2009/03/30 10:57:02 markd Exp $ + +Alternative fix for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38182 + +--- gcc/ginclude/stddef.h.orig 2009-02-28 18:57:06.000000000 +0100 ++++ gcc/ginclude/stddef.h +@@ -64,7 +64,7 @@ Boston, MA 02111-1307, USA. */ + /* 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_) ++#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) || defined(__NetBSD__) + #if !defined(_SIZE_T_) && !defined(_BSD_SIZE_T_) + #define _SIZE_T + #endif +@@ -359,7 +359,7 @@ 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_) ++#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) || defined(__NetBSD__) + /* 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_ |