mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
d018f5f996
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]
17 lines
583 B
C++
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
|