8bd37a7745
patch-mozilla__xpcom__threads__nsThreadManager.cpp. Submitted by: h h <aakuusta AT gmail.com>
14 lines
495 B
C++
14 lines
495 B
C++
--- ./mozilla/xpcom/threads/nsThreadManager.cpp.orig 2011-08-25 02:37:45.000000000 +0200
|
|
+++ ./mozilla/xpcom/threads/nsThreadManager.cpp 2011-08-28 17:14:14.000000000 +0200
|
|
@@ -89,6 +89,11 @@
|
|
nsresult
|
|
nsThreadManager::Init()
|
|
{
|
|
+#ifdef NS_TLS && (__FreeBSD_version < 802513 \
|
|
+ || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900045))
|
|
+ if (!gTLSThreadID)
|
|
+ gTLSThreadID = mozilla::threads::Generic;
|
|
+#endif
|
|
if (!mThreadsByPRThread.Init())
|
|
return NS_ERROR_OUT_OF_MEMORY;
|
|
|