diff options
author | wtc%netscape.com <devnull@localhost> | 1999-04-06 01:11:58 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-04-06 01:11:58 +0000 |
commit | 8492e955edf96879bc3345763cb0bdfd8075f5ff (patch) | |
tree | efd2281c4adef8feb787fbdd48a4ddab391c9728 | |
parent | 4fd1ca0554a358e822b11db2f1243c93660a4baa (diff) | |
download | nspr-hg-8492e955edf96879bc3345763cb0bdfd8075f5ff.tar.gz |
Merged the pthread_attr_setscope build problem fix into
NSPRPUB_RELEASE_3_1_BRANCH.
-rw-r--r-- | pr/src/pthreads/ptthread.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c index c2f72571..3784496f 100644 --- a/pr/src/pthreads/ptthread.c +++ b/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) { /* |