summaryrefslogtreecommitdiff
path: root/www/firefox/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-11-17 19:08:06 +0000
committerjoerg <joerg@pkgsrc.org>2014-11-17 19:08:06 +0000
commit83c644e72f189cc220c8dfed362cb2a162e7c3d9 (patch)
treec5f907eba943cb70e9af9633dbf90b1e0c423b67 /www/firefox/patches
parent91050c600519724fde141d90544cd82e240ad38b (diff)
downloadpkgsrc-83c644e72f189cc220c8dfed362cb2a162e7c3d9.tar.gz
Instantiate WeakMapPtr explicitly to get the right visibility with
clang.
Diffstat (limited to 'www/firefox/patches')
-rw-r--r--www/firefox/patches/patch-js_xpconnect_src_xpcprivate.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/firefox/patches/patch-js_xpconnect_src_xpcprivate.h b/www/firefox/patches/patch-js_xpconnect_src_xpcprivate.h
new file mode 100644
index 00000000000..6a91f3e480c
--- /dev/null
+++ b/www/firefox/patches/patch-js_xpconnect_src_xpcprivate.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-js_xpconnect_src_xpcprivate.h,v 1.1 2014/11/17 19:08:06 joerg Exp $
+
+--- js/xpconnect/src/xpcprivate.h.orig 2014-11-17 14:07:16.000000000 +0000
++++ js/xpconnect/src/xpcprivate.h
+@@ -1006,6 +1006,11 @@ static inline bool IS_PROTO_CLASS(const
+ /***************************************************************************/
+ // XPCWrappedNativeScope is one-to-one with a JS global object.
+
++#if __cplusplus >= 201103
++extern
++#endif
++template class JS_PUBLIC_API(JS::WeakMapPtr)<JSObject*, JSObject*>;
++
+ class nsIAddonInterposition;
+ class nsXPCComponentsBase;
+ class XPCWrappedNativeScope : public PRCList