--- src/lib/libthread_xu/thread/thr_detach.c 2005/02/01 12:38:27 1.1 +++ src/lib/libthread_xu/thread/thr_detach.c 2005/03/29 19:26:20 1.2 @@ -34,6 +34,8 @@ */ #include #include +#include + #include #include #include "thr_private.h" @@ -43,7 +45,7 @@ __weak_reference(_pthread_detach, pthrea int _pthread_detach(pthread_t pthread) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); int rval; if (pthread == NULL)