--- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx @@ -279,7 +279,7 @@ short nFlags) { Thread_Impl* pImpl; -#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) +#if 1 pthread_attr_t attr; size_t stacksize; #endif @@ -295,7 +295,7 @@ pthread_mutex_lock (&(pImpl->m_Lock)); -#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) +#if 1 if (pthread_attr_init(&attr) != 0) return nullptr; @@ -314,7 +314,7 @@ if ((nRet = pthread_create ( &(pImpl->m_hThread), -#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) +#if 1 &attr, #else PTHREAD_ATTR_DEFAULT, @@ -332,7 +332,7 @@ return nullptr; } -#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) +#if 1 pthread_attr_destroy(&attr); #endif