21 lines
796 B
Diff
21 lines
796 B
Diff
--- qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/gallium/auxiliary/os/os_thread.h.orig 2018-09-19 17:15:54.558770949 +0200
|
|
+++ qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/gallium/auxiliary/os/os_thread.h 2018-09-19 17:22:16.914790675 +0200
|
|
@@ -62,6 +62,16 @@
|
|
|
|
sigfillset(&new_set);
|
|
pthread_sigmask(SIG_SETMASK, &new_set, &saved_set);
|
|
+
|
|
+ pthread_attr_t attr;
|
|
+ pthread_attr_init(&attr);
|
|
+#if !defined(__GLIBC__)
|
|
+ /* For Musl libc set a thread stack size of 2 MiB */
|
|
+ ret = pthread_attr_setstacksize(&attr, 2 * 1024 * 1024);
|
|
+ if (ret)
|
|
+ return 0;
|
|
+#endif
|
|
+
|
|
- ret = pthread_create( &thread, NULL, routine, param );
|
|
+ ret = pthread_create( &thread, &attr, routine, param );
|
|
pthread_sigmask(SIG_SETMASK, &saved_set, NULL);
|
|
if (ret)
|