diff options
Diffstat (limited to 'nptl/pthread_setschedprio.c')
-rw-r--r-- | nptl/pthread_setschedprio.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nptl/pthread_setschedprio.c b/nptl/pthread_setschedprio.c index bc60ff0451..7bb68d3231 100644 --- a/nptl/pthread_setschedprio.c +++ b/nptl/pthread_setschedprio.c @@ -22,10 +22,10 @@ #include <sched.h> #include "pthreadP.h" #include <lowlevellock.h> - +#include <shlib-compat.h> int -pthread_setschedprio (pthread_t threadid, int prio) +__pthread_setschedprio (pthread_t threadid, int prio) { struct pthread *pd = (struct pthread *) threadid; @@ -47,7 +47,7 @@ pthread_setschedprio (pthread_t threadid, int prio) param.sched_priority = pd->tpp->priomax; /* Try to set the scheduler information. */ - if (__glibc_unlikely (sched_setparam (pd->tid, ¶m) == -1)) + if (__glibc_unlikely (__sched_setparam (pd->tid, ¶m) == -1)) result = errno; else { @@ -62,3 +62,10 @@ pthread_setschedprio (pthread_t threadid, int prio) return result; } +versioned_symbol (libc, __pthread_setschedprio, pthread_setschedprio, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_4, GLIBC_2_34) +compat_symbol (libpthread, __pthread_setschedprio, pthread_setschedprio, + GLIBC_2_3_4); +#endif |