diff options
Diffstat (limited to 'lib/libpthread/thread/thr_attr_setschedpolicy.c')
-rw-r--r-- | lib/libpthread/thread/thr_attr_setschedpolicy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_attr_setschedpolicy.c b/lib/libpthread/thread/thr_attr_setschedpolicy.c index 2788deb..29de2f4 100644 --- a/lib/libpthread/thread/thr_attr_setschedpolicy.c +++ b/lib/libpthread/thread/thr_attr_setschedpolicy.c @@ -32,12 +32,13 @@ * $FreeBSD$ */ #include <errno.h> -#ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" +#pragma weak pthread_attr_setschedpolicy=_pthread_attr_setschedpolicy + int -pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) +_pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) { int ret = 0; @@ -50,4 +51,3 @@ pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) return(ret); } -#endif |