diff options
Diffstat (limited to 'gcc/gthr-posix.c')
-rw-r--r-- | gcc/gthr-posix.c | 3 |
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) |