summaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp')
-rw-r--r--www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp b/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp
new file mode 100644
index 000000000000..085800f9d08a
--- /dev/null
+++ b/www/firefox/files/patch-xpcom__threads__nsThreadManager.cpp
@@ -0,0 +1,13 @@
+--- ./xpcom/threads/nsThreadManager.cpp.orig 2011-08-25 02:37:45.000000000 +0200
++++ ./xpcom/threads/nsThreadManager.cpp 2011-08-28 17:14:14.000000000 +0200
+@@ -89,6 +89,10 @@
+ nsresult
+ nsThreadManager::Init()
+ {
++#ifdef NS_TLS
++ if (!gTLSThreadID)
++ gTLSThreadID = mozilla::threads::Generic;
++#endif
+ if (!mThreadsByPRThread.Init())
+ return NS_ERROR_OUT_OF_MEMORY;
+