summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_self.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_self.c')
-rw-r--r--lib/libpthread/thread/thr_self.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_self.c b/lib/libpthread/thread/thr_self.c
index 81ec427..3c92daa 100644
--- a/lib/libpthread/thread/thr_self.c
+++ b/lib/libpthread/thread/thr_self.c
@@ -31,14 +31,14 @@
*
* $FreeBSD$
*/
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak pthread_self=_pthread_self
+
pthread_t
-pthread_self(void)
+_pthread_self(void)
{
/* Return the running thread pointer: */
- return (_thread_run);
+ return (_get_curthread());
}
-#endif
OpenPOWER on IntegriCloud