diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/thread_pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 0fbafda..6c2bbfd 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -200,7 +200,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg) /* Restore signal mask for original thread */ SET_THREAD_SIGMASK(SIG_SETMASK, &oldmask, NULL); -#ifdef THREAD_STACK_SIZE +#if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED) pthread_attr_destroy(&attrs); #endif if (success == 0) { |