This seems wrong. The test for TLS should not set HAVE_TLS if it is not supported.
This commit is contained in:
@@ -77,10 +77,11 @@ static int TestTLSThread( void *p )
|
|||||||
|
|
||||||
static void TestTLS()
|
static void TestTLS()
|
||||||
{
|
{
|
||||||
|
#if defined(LINUX)
|
||||||
/* TLS won't work on older threads libraries, and may crash. */
|
/* TLS won't work on older threads libraries, and may crash. */
|
||||||
if( !UsingNPTL() )
|
if( !UsingNPTL() )
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
/* TLS won't work on older Linux kernels. Do a simple check. */
|
/* TLS won't work on older Linux kernels. Do a simple check. */
|
||||||
g_iTestTLS = 1;
|
g_iTestTLS = 1;
|
||||||
|
|
||||||
@@ -167,7 +168,7 @@ ArchHooks_Unix::ArchHooks_Unix()
|
|||||||
|
|
||||||
InstallExceptionHandler();
|
InstallExceptionHandler();
|
||||||
|
|
||||||
#if defined(HAVE_TLS)
|
#if defined(HAVE_TLS) && !defined(BSD)
|
||||||
TestTLS();
|
TestTLS();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user