From 0c38b8b82df24a7b024bfc18253ef076e35a78b5 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Tue, 23 Mar 1999 05:17:47 +0000 Subject: [PATCH] Bugzilla bug #4176: _POSIX_THREAD_PRIORITY_SCHEDULING is the feature-test macro for pthread_attr_setscope. Thanks to jon@eyrie.org (Jonathan Lennox) for the patch. --- nsprpub/pr/src/pthreads/ptthread.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nsprpub/pr/src/pthreads/ptthread.c b/nsprpub/pr/src/pthreads/ptthread.c index c2f72571a15f..3784496fcabb 100644 --- a/nsprpub/pr/src/pthreads/ptthread.c +++ b/nsprpub/pr/src/pthreads/ptthread.c @@ -314,10 +314,7 @@ static PRThread* _PR_CreateThread( scope = PR_GLOBAL_THREAD; if (PR_GLOBAL_BOUND_THREAD == scope) { - /* - * should a Posix feature test be used here? - */ -#ifdef PTHREAD_SCOPE_SYSTEM +#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) rv = pthread_attr_setscope(&tattr, PTHREAD_SCOPE_SYSTEM); if (rv) { /*