diff options
author | danfe <danfe@FreeBSD.org> | 2007-06-19 04:14:41 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2007-06-19 04:14:41 +0800 |
commit | 6db84901d691be253fb0a61a177b92a9821a5b8d (patch) | |
tree | 4edecf1ecb020f45f0640fd10d69f032b5b8d7e1 /lang | |
parent | dd153a386a3c3e4f8f1841547e017801513d7adc (diff) | |
download | freebsd-ports-gnome-6db84901d691be253fb0a61a177b92a9821a5b8d.tar.gz freebsd-ports-gnome-6db84901d691be253fb0a61a177b92a9821a5b8d.tar.zst freebsd-ports-gnome-6db84901d691be253fb0a61a177b92a9821a5b8d.zip |
Fix the build with GCC 4.2 and thus unbreak.
Reported by: pointyhat (logs)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/klone/Makefile | 4 | ||||
-rw-r--r-- | lang/klone/files/patch-gcc4 | 26 |
2 files changed, 26 insertions, 4 deletions
diff --git a/lang/klone/Makefile b/lang/klone/Makefile index 6e0575f0e0ad..bf3d7bdf6848 100644 --- a/lang/klone/Makefile +++ b/lang/klone/Makefile @@ -23,10 +23,6 @@ WRKSRC= ${WRKDIR}/Klone BROKEN= Does not compile on sparc64 .endif -.if ${OSVERSION} >= 700042 -BROKEN= Broken with gcc 4.2 -.endif - do-configure: @${SED} -e 's:%%PREFIX%%:${PREFIX}:' \ -e 's:%%CC%%:${CC}:' \ diff --git a/lang/klone/files/patch-gcc4 b/lang/klone/files/patch-gcc4 new file mode 100644 index 000000000000..00756e147e6a --- /dev/null +++ b/lang/klone/files/patch-gcc4 @@ -0,0 +1,26 @@ +--- KloneLight/KlLib.h.orig Fri Feb 16 21:47:53 2001 ++++ KloneLight/KlLib.h Tue Jun 19 03:03:49 2007 +@@ -375,8 +375,8 @@ + type[5] = (KlMethod) (((Card32) type[5]) | trait); \ + KlDeclareTrait(type,trait) + #else +-#define KlDeclareTrait(type,trait) ((Card32) type[4]) |= trait +-#define KlDeclareIsTrait(type,trait) ((Card32) type[5]) |= trait; \ ++#define KlDeclareTrait(type,trait) (type[4] = (Card32) type[4] | trait) ++#define KlDeclareIsTrait(type,trait) (type[5] = (Card32) type[5] | trait); \ + KlDeclareTrait(type,trait) + #endif + +--- klone.h.orig Fri Feb 16 21:47:49 2001 ++++ klone.h Tue Jun 19 03:07:31 2007 +@@ -503,8 +503,8 @@ + type[5] = (KlMethod) (((Card32) type[5]) | trait); \ + KlDeclareTrait(type,trait) + #else +-#define KlDeclareTrait(type,trait) ((Card32) type[4]) |= trait +-#define KlDeclareIsTrait(type,trait) ((Card32) type[5]) |= trait; \ ++#define KlDeclareTrait(type,trait) (type[4] = (Card32) type[4] | trait) ++#define KlDeclareIsTrait(type,trait) (type[5] = (Card32) type[5] | trait); \ + KlDeclareTrait(type,trait) + #endif + |