1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/firefox36/files/patch-embedding_base_nsEmbedAPI.cpp
Joe Marcus Clarke d018f5f996 * Workaround a bug which can cause applications embedding Gecko to crash
on exit [1]

* Use the correct size for a JavaScript object on 64-bit platforms which
  will help get the Java plug-in working on those platforms [2]

Test by:	mezz [1]
Submitted by:	jkim [2]
Obtained from:	Firefox trunk [2]
2007-10-10 00:15:33 +00:00

17 lines
583 B
C++

--- embedding/base/nsEmbedAPI.cpp.orig 2007-10-09 20:00:30.000000000 -0400
+++ embedding/base/nsEmbedAPI.cpp 2007-10-09 20:01:45.000000000 -0400
@@ -53,7 +53,12 @@ static PRBool sRegistryIniti
static PRUint32 sInitCounter = 0;
#define HACK_AROUND_THREADING_ISSUES
-//#define HACK_AROUND_NONREENTRANT_INITXPCOM
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#if __FreeBSD_version < 700042
+#define HACK_AROUND_NONREENTRANT_INITXPCOM
+#endif
+#endif
#ifdef HACK_AROUND_NONREENTRANT_INITXPCOM
// XXX hack class to clean up XPCOM when this module is unloaded