Android defines linux, but doesn't have the gettid system call.

This commit is contained in:
Sam Lantinga 2011-03-25 13:48:48 -07:00
parent 5c01c4797c
commit 98e5ddb37d

View file

@ -23,7 +23,7 @@
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
#ifdef linux #ifdef __LINUX__
#include <sys/time.h> #include <sys/time.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/syscall.h> #include <sys/syscall.h>
@ -100,7 +100,7 @@ SDL_ThreadID(void)
int int
SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority) SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
{ {
#ifdef linux #ifdef __LINUX__
int value; int value;
if (priority == SDL_THREAD_PRIORITY_LOW) { if (priority == SDL_THREAD_PRIORITY_LOW) {