summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_setprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_setprio.c')
-rw-r--r--lib/libthr/thread/thr_setprio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_setprio.c b/lib/libthr/thread/thr_setprio.c
index c5a9506..bb9a9bf 100644
--- a/lib/libthr/thread/thr_setprio.c
+++ b/lib/libthr/thread/thr_setprio.c
@@ -31,7 +31,11 @@
*
* $FreeBSD$
*/
+
+#include "namespace.h"
#include <pthread.h>
+#include "un-namespace.h"
+
#include "thr_private.h"
__weak_reference(_pthread_setprio, pthread_setprio);
@@ -42,9 +46,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