diff options
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r-- | gcc/gthr-posix.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index ecb06e2f4cb..1de5f4dc2f6 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -239,16 +239,15 @@ __gthread_active_p (void) static inline int __gthread_active_p (void) { - static void *const __gthread_active_ptr - = __extension__ (void *) &__gthrw_( /* Android's C library does not provide pthread_cancel, check for `pthread_create' instead. */ #ifndef __BIONIC__ - pthread_cancel + static void *const __gthread_active_ptr + = __extension__ (void *) &__gthrw_(pthread_cancel); #else - pthread_create + static void *const __gthread_active_ptr + = __extension__ (void *) &__gthrw_(pthread_create); #endif - ); return __gthread_active_ptr != 0; } |