summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_attr_getschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_attr_getschedparam.c')
-rw-r--r--lib/libpthread/thread/thr_attr_getschedparam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_attr_getschedparam.c b/lib/libpthread/thread/thr_attr_getschedparam.c
index 46586ff..454e1c2 100644
--- a/lib/libpthread/thread/thr_attr_getschedparam.c
+++ b/lib/libpthread/thread/thr_attr_getschedparam.c
@@ -32,12 +32,13 @@
* $FreeBSD$
*/
#include <errno.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_attr_getschedparam=_pthread_attr_getschedparam
+
int
-pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param)
+_pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param)
{
int ret = 0;
@@ -48,4 +49,3 @@ pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param
return(ret);
}
-#endif
OpenPOWER on IntegriCloud