aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gcc.gnu.org>2004-05-28 13:18:23 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-05-28 13:18:23 -0700
commit45863ba3631b41587cc34ea3f7621bf191f4eb9f (patch)
tree5ddb619763dd5ccc65476b1eed3ee14d276d762c /gcc/gthr-posix.c
parent0c1a1ecd8062d98df568b076d71868cb022ccc50 (diff)
downloadgcc-45863ba3631b41587cc34ea3f7621bf191f4eb9f.zip
gcc-45863ba3631b41587cc34ea3f7621bf191f4eb9f.tar.gz
gcc-45863ba3631b41587cc34ea3f7621bf191f4eb9f.tar.bz2
gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for...
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. From-SVN: r82376
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 56bbad2..b1a2e31 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)