This seems wrong. The test for TLS should not set HAVE_TLS if it is not supported.

This commit is contained in:
Steve Checkoway
2006-03-20 06:50:37 +00:00
parent 3a304b1a41
commit f7c28cb43b
@@ -77,10 +77,11 @@ static int TestTLSThread( void *p )
static void TestTLS()
{
#if defined(LINUX)
/* TLS won't work on older threads libraries, and may crash. */
if( !UsingNPTL() )
return;
#endif
/* TLS won't work on older Linux kernels. Do a simple check. */
g_iTestTLS = 1;
@@ -167,7 +168,7 @@ ArchHooks_Unix::ArchHooks_Unix()
InstallExceptionHandler();
#if defined(HAVE_TLS)
#if defined(HAVE_TLS) && !defined(BSD)
TestTLS();
#endif
}