summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2016-03-17 15:22:03 +0200
committerBogDan Vatra <bogdan@kdab.com>2016-03-17 13:29:32 +0000
commit461ebedb98c986c047a68e98cb9cc3c212d5d315 (patch)
tree300622a1b8e684dc8024ba4ff6f11f0a8497404f /src/corelib/global
parent35dce99b5664e47b2210c2dfe36300376e837f1d (diff)
Android: Fix compilation with NDK r11
Task-number: QTBUG-51859 Change-Id: Id8bbcc9f0503ab2742e8da7f3b5de03fd46714b2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qlogging.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp
index ca38d672c3..e341b3ecfd 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -96,6 +96,11 @@ extern char *__progname;
#if defined(Q_OS_LINUX) && (defined(__GLIBC__) || __has_include(<sys/syscall.h>))
# include <sys/syscall.h>
+
+# if defined(Q_OS_ANDROID) && !defined(SYS_gettid)
+# define SYS_gettid __NR_gettid
+# endif
+
static long qt_gettid()
{
// no error handling