summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-04-06 01:11:58 +0000
committerwtc%netscape.com <devnull@localhost>1999-04-06 01:11:58 +0000
commit8492e955edf96879bc3345763cb0bdfd8075f5ff (patch)
treeefd2281c4adef8feb787fbdd48a4ddab391c9728
parent4fd1ca0554a358e822b11db2f1243c93660a4baa (diff)
downloadnspr-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.c5
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) {
/*