diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_getprio.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_getprio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_getprio.c b/lib/libc_r/uthread/uthread_getprio.c index 2f94b86..35eeb5b 100644 --- a/lib/libc_r/uthread/uthread_getprio.c +++ b/lib/libc_r/uthread/uthread_getprio.c @@ -32,12 +32,13 @@ * $FreeBSD$ */ #include <errno.h> -#ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" +#pragma weak pthread_getprio=_pthread_getprio + int -pthread_getprio(pthread_t pthread) +_pthread_getprio(pthread_t pthread) { int policy, ret; struct sched_param param; @@ -53,4 +54,3 @@ pthread_getprio(pthread_t pthread) /* Return the thread priority or an error status: */ return (ret); } -#endif |