--- src/lib/libthread_xu/thread/thr_self.c 2005/02/01 12:38:27 1.1 +++ src/lib/libthread_xu/thread/thr_self.c 2005/03/29 19:26:20 1.2 @@ -32,6 +32,9 @@ * $FreeBSD: src/lib/libpthread/thread/thr_self.c,v 1.7 2003/04/18 05:04:16 deischen Exp $ * $DragonFly$ */ + +#include + #include #include "thr_private.h" @@ -43,5 +46,5 @@ _pthread_self(void) _thr_check_init(); /* Return the running thread pointer: */ - return (_get_curthread()); + return (tls_get_curthread()); }