summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_attr_getscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_attr_getscope.c')
-rw-r--r--lib/libc_r/uthread/uthread_attr_getscope.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_attr_getscope.c b/lib/libc_r/uthread/uthread_attr_getscope.c
index 176f01b..ca0f4c9 100644
--- a/lib/libc_r/uthread/uthread_attr_getscope.c
+++ b/lib/libc_r/uthread/uthread_attr_getscope.c
@@ -32,12 +32,13 @@
* $FreeBSD$
*/
#include <errno.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_attr_getscope=_pthread_attr_getscope
+
int
-pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope)
+_pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope)
{
int ret = 0;
@@ -51,4 +52,3 @@ pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope)
return(ret);
}
-#endif
OpenPOWER on IntegriCloud