aboutsummaryrefslogblamecommitdiffstats
path: root/community/libreoffice/musl-stacksize.patch
blob: 5e722053d5863ef77b4d70c64d7aacdba3f2e0f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                            







                                                                                                                                     

                   







                                                                                                                                     
                   







                                                                                                                                     
 








                                                                                                                                     
--- a/sal/osl/unx/thread.cxx
+++ b/sal/osl/unx/thread.cxx
@@ -250,7 +250,7 @@
     short             nFlags)
 {
     Thread_Impl* pImpl;
-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
+#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
     pthread_attr_t attr;
     size_t stacksize;
 #endif

@@ -266,7 +266,7 @@

     pthread_mutex_lock (&(pImpl->m_Lock));

-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
+#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
     if (pthread_attr_init(&attr) != 0)
         return nullptr;

@@ -283,7 +283,7 @@

     if ((nRet = pthread_create (
         &(pImpl->m_hThread),
-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
+#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
         &attr,
 #else
         PTHREAD_ATTR_DEFAULT,

@@ -301,7 +301,7 @@
         return nullptr;
     }

-#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
+#if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS) || (defined LINUX && !defined __GLIBC__)
     pthread_attr_destroy(&attr);
 #endif