diff options
author | xtraeme <xtraeme> | 2004-10-21 00:55:36 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-10-21 00:55:36 +0000 |
commit | 1976330401ba7eb7bcb9d76c184e6c969c10cd6c (patch) | |
tree | 79ac2badaab2c716e55e5d0565d8d1a99c204c3b /www/firefox/patches/patch-cd | |
parent | c74290b9e23643875f6b445f7ffa2dd1657e18ae (diff) | |
download | pkgsrc-1976330401ba7eb7bcb9d76c184e6c969c10cd6c.tar.gz |
Only include <stdbool.h> if !defined(_cplusplus) in nptypes.h.
Fixes build on NetBSD/macppc and maybe others, tested by Peter Bex
on 2-0/macppc and i386/-current/2-0 by me, closes PR pkg/27033.
Diffstat (limited to 'www/firefox/patches/patch-cd')
-rw-r--r-- | www/firefox/patches/patch-cd | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/firefox/patches/patch-cd b/www/firefox/patches/patch-cd new file mode 100644 index 00000000000..f27a7569d53 --- /dev/null +++ b/www/firefox/patches/patch-cd @@ -0,0 +1,29 @@ +$NetBSD: patch-cd,v 1.1 2004/10/21 00:55:36 xtraeme Exp $ + +--- modules/plugin/base/public/nptypes.h.orig 2004-10-21 01:07:27.000000000 +0200 ++++ modules/plugin/base/public/nptypes.h 2004-10-21 01:09:38.000000000 +0200 +@@ -78,8 +78,10 @@ + typedef int bool; + #endif + #else /* OPENBSD is defined, so use its bool */ ++ #if !defined(__cplusplus) + #include <stdbool.h> + #endif ++ #endif + #else + /* + * FreeBSD defines uint32_t and bool. +@@ -97,6 +99,7 @@ + */ + #include <stdint.h> + ++ #if !defined(__cplusplus) + #if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 95) + #include <stdbool.h> + #else +@@ -106,4 +109,5 @@ + */ + #define bool int + #endif ++ #endif + #endif |