|
@@ -159,14 +159,15 @@ SDL_SYS_SetupThread(const char *name)
|
|
}
|
|
}
|
|
|
|
|
|
/* NativeClient does not yet support signals.*/
|
|
/* NativeClient does not yet support signals.*/
|
|
-#ifndef __NACL__
|
|
|
|
|
|
+#if !defined(__ANDROID__) && !defined(__NACL__)
|
|
/* Mask asynchronous signals for this thread */
|
|
/* Mask asynchronous signals for this thread */
|
|
sigemptyset(&mask);
|
|
sigemptyset(&mask);
|
|
for (i = 0; sig_list[i]; ++i) {
|
|
for (i = 0; sig_list[i]; ++i) {
|
|
sigaddset(&mask, sig_list[i]);
|
|
sigaddset(&mask, sig_list[i]);
|
|
}
|
|
}
|
|
pthread_sigmask(SIG_BLOCK, &mask, 0);
|
|
pthread_sigmask(SIG_BLOCK, &mask, 0);
|
|
-#endif
|
|
|
|
|
|
+#endif /* !__ANDROID__ && !__NACL__ */
|
|
|
|
+
|
|
|
|
|
|
#ifdef PTHREAD_CANCEL_ASYNCHRONOUS
|
|
#ifdef PTHREAD_CANCEL_ASYNCHRONOUS
|
|
/* Allow ourselves to be asynchronously cancelled */
|
|
/* Allow ourselves to be asynchronously cancelled */
|