Android defines linux, but doesn't have the gettid system call.
This commit is contained in:
parent
5c01c4797c
commit
98e5ddb37d
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#ifdef linux
|
||||
#ifdef __LINUX__
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/syscall.h>
|
||||
|
@ -100,7 +100,7 @@ SDL_ThreadID(void)
|
|||
int
|
||||
SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
|
||||
{
|
||||
#ifdef linux
|
||||
#ifdef __LINUX__
|
||||
int value;
|
||||
|
||||
if (priority == SDL_THREAD_PRIORITY_LOW) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue