summaryrefslogtreecommitdiff
path: root/repo/qt5-qtdeclarative/qt-musl-stackbottom.patch
blob: fdfc19298ae80692bf4e9de4a1b6e70774162127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
For musl libc the stackBottom for the main thread is recalculated
just as it is for Android. See: https://bugreports.qt.io/browse/QTBUG-44268

--- qtdeclarative/src/qml/jsruntime/qv4engine.cpp	2016-02-26 10:34:34.000000000 +0100
+++ qtdeclarative/src/qml/jsruntime/qv4engine.cpp	2016-04-04 21:52:43.780823136 +0200
@@ -94,6 +94,11 @@
 #include <valgrind/memcheck.h>
 #endif
 
+#if defined(Q_OS_LINUX) && !defined(__GLIBC__)
+#include <sys/syscall.h>
+#define gettid() syscall(SYS_gettid)
+#endif
+
 QT_BEGIN_NAMESPACE
 
 using namespace QV4;