mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libwinpr-thread: fix compilation on Android
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
#include <winpr/crt.h>
|
||||
#include <winpr/platform.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && !defined(__ANDROID__)
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
@@ -164,7 +164,7 @@ HANDLE _GetCurrentThread(VOID)
|
||||
|
||||
DWORD GetCurrentThreadId(VOID)
|
||||
{
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && !defined(__ANDROID__)
|
||||
pid_t tid;
|
||||
tid = syscall(SYS_gettid);
|
||||
return (DWORD) tid;
|
||||
|
||||
Reference in New Issue
Block a user