summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-28 20:18:23 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-28 20:18:23 +0000
commita55f666d97f9a33369f124946e6f22c023335692 (patch)
tree5ddb619763dd5ccc65476b1eed3ee14d276d762c /gcc/gthr-posix.c
parenta116ab2055e2d13cffe246c77b8442056e579632 (diff)
downloadgcc-a55f666d97f9a33369f124946e6f22c023335692.tar.gz
2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
* gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for _POSIX_THREAD_PRIORITY_SCHEDULING. Remove comment about not checking for _POSIX_PRIORITY_SCHEDULING. * gthr-posix.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82376 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-posix.c')
-rw-r--r--gcc/gthr-posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gthr-posix.c b/gcc/gthr-posix.c
index 56bbad28301..b1a2e314569 100644
--- a/gcc/gthr-posix.c
+++ b/gcc/gthr-posix.c
@@ -147,7 +147,7 @@ pthread_self (void)
{
return (pthread_t) 0;
}
-
+#ifdef _POSIX_PRIORITY_SCHEDULING
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
int
sched_get_priority_max (int policy ATTRIBUTE_UNUSED)
@@ -161,6 +161,7 @@ sched_get_priority_min (int policy ATTRIBUTE_UNUSED)
return 0;
}
#endif /* _POSIX_THREAD_PRIORITY_SCHEDULING */
+#endif /* _POSIX_PRIORITY_SCHEDULING */
int
sched_yield (void)