summaryrefslogtreecommitdiff
path: root/devel/xulrunner/patches
diff options
context:
space:
mode:
authortron <tron>2010-01-10 09:43:06 +0000
committertron <tron>2010-01-10 09:43:06 +0000
commitd6bf54d548bce821c87adf50a87f2763ede9d8ce (patch)
tree0207f459bde4d0b98dd850f04739bd8976612efc /devel/xulrunner/patches
parentad1f615e8479fddf13ea381111fef114b743ca6c (diff)
downloadpkgsrc-d6bf54d548bce821c87adf50a87f2763ede9d8ce.tar.gz
Fix build with Sun Sudio C++ by not including "stdbool.h" in C++ mode.
Diffstat (limited to 'devel/xulrunner/patches')
-rw-r--r--devel/xulrunner/patches/patch-bb19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/xulrunner/patches/patch-bb b/devel/xulrunner/patches/patch-bb
new file mode 100644
index 00000000000..9301cc591d5
--- /dev/null
+++ b/devel/xulrunner/patches/patch-bb
@@ -0,0 +1,19 @@
+$NetBSD: patch-bb,v 1.1 2010/01/10 09:43:06 tron Exp $
+
+Fix build using Sun Studio C++.
+
+--- memory/jemalloc/jemalloc.h.orig 2009-12-02 04:29:06.000000000 +0000
++++ memory/jemalloc/jemalloc.h 2010-01-09 23:24:34.000000000 +0000
+@@ -1,3 +1,4 @@
++#ifndef __cplusplus
+ #ifndef MOZ_MEMORY_WINDOWS
+ # include <stdbool.h>
+ #else
+@@ -6,6 +7,7 @@
+ # define bool BOOL
+ # endif
+ #endif
++#endif
+
+ extern const char *_malloc_options;
+