summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_setprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_setprio.c')
-rw-r--r--lib/libpthread/thread/thr_setprio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_setprio.c b/lib/libpthread/thread/thr_setprio.c
index c630db5..eee05dc 100644
--- a/lib/libpthread/thread/thr_setprio.c
+++ b/lib/libpthread/thread/thr_setprio.c
@@ -31,12 +31,13 @@
*
* $FreeBSD$
*/
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_setprio=_pthread_setprio
+
int
-pthread_setprio(pthread_t pthread, int prio)
+_pthread_setprio(pthread_t pthread, int prio)
{
int ret, policy;
struct sched_param param;
@@ -49,4 +50,3 @@ pthread_setprio(pthread_t pthread, int prio)
/* Return the error status: */
return (ret);
}
-#endif
OpenPOWER on IntegriCloud