Android: Fix compilation with NDK r11
Task-number: QTBUG-51859 Change-Id: Id8bbcc9f0503ab2742e8da7f3b5de03fd46714b2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
parent
35dce99b56
commit
461ebedb98
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user