summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_setschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_setschedparam.c')
-rw-r--r--lib/libc_r/uthread/uthread_setschedparam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_setschedparam.c b/lib/libc_r/uthread/uthread_setschedparam.c
index 9a44ad7..a03f036 100644
--- a/lib/libc_r/uthread/uthread_setschedparam.c
+++ b/lib/libc_r/uthread/uthread_setschedparam.c
@@ -33,12 +33,13 @@
*/
#include <errno.h>
#include <sys/param.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_setschedparam=_pthread_setschedparam
+
int
-pthread_setschedparam(pthread_t pthread, int policy,
+_pthread_setschedparam(pthread_t pthread, int policy,
const struct sched_param *param)
{
int old_prio, in_readyq = 0, ret = 0;
@@ -116,4 +117,3 @@ pthread_setschedparam(pthread_t pthread, int policy,
}
return(ret);
}
-#endif
OpenPOWER on IntegriCloud