summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-03-23 05:17:47 +0000
committerwtc%netscape.com <devnull@localhost>1999-03-23 05:17:47 +0000
commit18843b83d23b38a91934a0d39976b5d567d37cce (patch)
tree2716d249b4673ab4f14fb853db49e2be50d5b644
parent09d95e168a3b9971e554af146b9ddab5fdd16853 (diff)
downloadnspr-hg-18843b83d23b38a91934a0d39976b5d567d37cce.tar.gz
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.
-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) {
/*