diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_self.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_self.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_self.c b/lib/libc_r/uthread/uthread_self.c index 81ec427..3c92daa 100644 --- a/lib/libc_r/uthread/uthread_self.c +++ b/lib/libc_r/uthread/uthread_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 |