Fix includes for gettid() on android.

This commit is contained in:
Bartosz Taudul 2019-08-19 15:09:47 +02:00
parent 9be6f4a414
commit fd245bb5df

View File

@ -9,11 +9,13 @@ extern "C" __declspec(dllimport) unsigned long __stdcall GetCurrentThreadId(void
# include <pthread.h>
#endif
#ifdef __ANDROID__
# include <sys/types.h>
#elif defined __linux__
#ifdef __linux__
# include <unistd.h>
# include <sys/syscall.h>
# ifdef __ANDROID__
# include <sys/types.h>
# else
# include <sys/syscall.h>
# endif
#endif
#include <stdint.h>