diff options
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
| -rw-r--r-- | lib/libpthread/thread/thr_create.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index 9682fcf0ce96..8c4592af7e8e 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -126,9 +126,8 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, */ } } -#ifdef SYSTEM_SCOPE_ONLY - new_thread->attr.flags |= PTHREAD_SCOPE_SYSTEM; -#endif + if (_thread_scope_system != 0) + new_thread->attr.flags |= PTHREAD_SCOPE_SYSTEM; if (create_stack(&new_thread->attr) != 0) { /* Insufficient memory to create a stack: */ ret = EAGAIN; |
