diff options
Diffstat (limited to 'community/libreoffice/musl-stacksize.patch')
-rw-r--r-- | community/libreoffice/musl-stacksize.patch | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/community/libreoffice/musl-stacksize.patch b/community/libreoffice/musl-stacksize.patch index 5e722053d58..05ca019fbd8 100644 --- a/community/libreoffice/musl-stacksize.patch +++ b/community/libreoffice/musl-stacksize.patch @@ -1,40 +1,38 @@ --- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx -@@ -250,7 +250,7 @@ +@@ -279,7 +279,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__) +-#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) ++#if 1 pthread_attr_t attr; size_t stacksize; #endif - -@@ -266,7 +266,7 @@ - +@@ -295,7 +295,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 defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) ++#if 1 if (pthread_attr_init(&attr) != 0) return nullptr; - -@@ -283,7 +283,7 @@ - + +@@ -314,7 +314,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__) +-#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) ++#if 1 &attr, #else PTHREAD_ATTR_DEFAULT, - -@@ -301,7 +301,7 @@ +@@ -332,7 +332,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__) + +-#if defined OPENBSD || defined MACOSX || (defined LINUX && !ENABLE_RUNTIME_OPTIMIZATIONS) ++#if 1 pthread_attr_destroy(&attr); #endif - + |