summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_attr_getdetachstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_attr_getdetachstate.c')
-rw-r--r--lib/libpthread/thread/thr_attr_getdetachstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_attr_getdetachstate.c b/lib/libpthread/thread/thr_attr_getdetachstate.c
index d120553..581c952 100644
--- a/lib/libpthread/thread/thr_attr_getdetachstate.c
+++ b/lib/libpthread/thread/thr_attr_getdetachstate.c
@@ -32,12 +32,13 @@
* $FreeBSD$
*/
#include <errno.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_attr_getdetachstate=_pthread_attr_getdetachstate
+
int
-pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
+_pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
int ret;
@@ -56,4 +57,3 @@ pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
}
return(ret);
}
-#endif
OpenPOWER on IntegriCloud