summaryrefslogtreecommitdiff
path: root/www/firefox-esr/files/patch-embedding_base_nsEmbedAPI.cpp
blob: 2cc9823fed1c5a625bc831ddf239eec74aa788e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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