Android defines linux, but doesn't have the gettid system call.
authorSam Lantinga <slouken@libsdl.org>
Fri, 25 Mar 2011 13:48:48 -0700
changeset 55130a72c9c29099
parent 5512 56ab281d7d3e
child 5514 6bd701987ba9
Android defines linux, but doesn't have the gettid system call.
src/thread/pthread/SDL_systhread.c
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Fri Mar 25 13:47:49 2011 -0700
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Fri Mar 25 13:48:48 2011 -0700
     1.3 @@ -23,7 +23,7 @@
     1.4  
     1.5  #include <pthread.h>
     1.6  #include <signal.h>
     1.7 -#ifdef linux
     1.8 +#ifdef __LINUX__
     1.9  #include <sys/time.h>
    1.10  #include <sys/resource.h>
    1.11  #include <sys/syscall.h>
    1.12 @@ -100,7 +100,7 @@
    1.13  int
    1.14  SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
    1.15  {
    1.16 -#ifdef linux
    1.17 +#ifdef __LINUX__
    1.18      int value;
    1.19  
    1.20      if (priority == SDL_THREAD_PRIORITY_LOW) {