diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-22 07:27:02 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-22 07:27:02 +0000 |
commit | 4ace63889357f5ffc8b96a8a6144352e7ce56eec (patch) | |
tree | 21cae77af0719690b1255038635714a30e4f073d /libpthread/nptl/pthread_setschedparam.c | |
parent | f5faeff83458b4dc618ca83edd2dd33dbe63c15d (diff) | |
download | uClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.bz2 uClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.xz |
Big set of various patches to get the NPTL libraries to build and link.
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 |