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.
This commit is contained in:
wtc%netscape.com 1999-03-23 05:17:47 +00:00
parent 24c6ea43be
commit 0c38b8b82d

View File

@ -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) {
/*