diff -r a1b920bc870d include/SDL_config_android.h --- a/include/SDL_config_android.h Tue Jun 16 22:16:35 2015 -0700 +++ b/include/SDL_config_android.h Wed Jun 17 08:53:29 2015 +0200 @@ -43,7 +43,7 @@ #define HAVE_STDINT_H 1 #define HAVE_CTYPE_H 1 #define HAVE_MATH_H 1 -#define HAVE_SIGNAL_H 1 +//#define HAVE_SIGNAL_H 1 /* C library functions */ #define HAVE_MALLOC 1 @@ -76,7 +76,7 @@ #define HAVE_STRTOULL 1 #define HAVE_STRTOD 1 #define HAVE_ATOI 1 -#define HAVE_ATOF 1 +//#define HAVE_ATOF 1 #define HAVE_STRCMP 1 #define HAVE_STRNCMP 1 #define HAVE_STRCASECMP 1 @@ -103,7 +103,7 @@ #define HAVE_SQRTF 1 #define HAVE_TAN 1 #define HAVE_TANF 1 -#define HAVE_SIGACTION 1 +//#define HAVE_SIGACTION 1 #define HAVE_SETJMP 1 #define HAVE_NANOSLEEP 1 #define HAVE_SYSCONF 1 diff -r a1b920bc870d src/test/SDL_test_random.c --- a/src/test/SDL_test_random.c Tue Jun 16 22:16:35 2015 -0700 +++ b/src/test/SDL_test_random.c Wed Jun 17 08:53:29 2015 +0200 @@ -68,10 +68,10 @@ if (rndContext==NULL) return; - srand((unsigned int)time(NULL)); - a=rand(); - srand(clock()); - b=rand(); + srand48((unsigned int)time(NULL)); + a = lrand48(); + srand48(clock()); + b = lrand48(); SDLTest_RandomInit(rndContext, a, b); } diff -r a1b920bc870d src/thread/pthread/SDL_systhread.c --- a/src/thread/pthread/SDL_systhread.c Tue Jun 16 22:16:35 2015 -0700 +++ b/src/thread/pthread/SDL_systhread.c Wed Jun 17 08:53:29 2015 +0200 @@ -159,6 +159,7 @@ } /* NativeClient does not yet support signals.*/ +#ifndef __ANDROID__ #ifndef __NACL__ /* Mask asynchronous signals for this thread */ sigemptyset(&mask); @@ -167,6 +168,8 @@ } pthread_sigmask(SIG_BLOCK, &mask, 0); #endif +#endif + #ifdef PTHREAD_CANCEL_ASYNCHRONOUS /* Allow ourselves to be asynchronously cancelled */