void-packages/srcpkgs/qt5/patches/0024-musl-mesa-gallium-thread-stacksize.patch
Jürgen Buchmüller 845f11032a
qt5: update to 5.11.2
[ci skip]

Closes: #2538 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-11-21 19:36:58 +01:00

20 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)