summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_setprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_setprio.c')
-rw-r--r--lib/libkse/thread/thr_setprio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_setprio.c b/lib/libkse/thread/thr_setprio.c
index 2f67e81..2197722 100644
--- a/lib/libkse/thread/thr_setprio.c
+++ b/lib/libkse/thread/thr_setprio.c
@@ -28,9 +28,14 @@
*
* $FreeBSD$
*/
+
+#include "namespace.h"
#include <pthread.h>
+#include "un-namespace.h"
#include "thr_private.h"
+int _pthread_setprio(pthread_t pthread, int prio);
+
LT10_COMPAT_PRIVATE(_pthread_setprio);
LT10_COMPAT_DEFAULT(pthread_setprio);
@@ -42,9 +47,9 @@ _pthread_setprio(pthread_t pthread, int prio)
int ret, policy;
struct sched_param param;
- if ((ret = pthread_getschedparam(pthread, &policy, &param)) == 0) {
+ if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0) {
param.sched_priority = prio;
- ret = pthread_setschedparam(pthread, policy, &param);
+ ret = _pthread_setschedparam(pthread, policy, &param);
}
/* Return the error status: */
OpenPOWER on IntegriCloud