diff options
Diffstat (limited to 'libpthread/nptl/pthread_setschedparam.c')
-rw-r--r-- | libpthread/nptl/pthread_setschedparam.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/nptl/pthread_setschedparam.c b/libpthread/nptl/pthread_setschedparam.c index 5889cc98a..a3947ba25 100644 --- a/libpthread/nptl/pthread_setschedparam.c +++ b/libpthread/nptl/pthread_setschedparam.c @@ -46,7 +46,11 @@ __pthread_setschedparam (threadid, policy, param) lll_lock (pd->lock); /* Try to set the scheduler information. */ +#ifdef __UCLIBC__ + if (__builtin_expect (sched_setscheduler (pd->tid, policy, +#else if (__builtin_expect (__sched_setscheduler (pd->tid, policy, +#endif param) == -1, 0)) result = errno; else |