--- src/lib/libthread_xu/thread/thr_info.c 2005/02/01 12:38:27 1.1 +++ src/lib/libthread_xu/thread/thr_info.c 2005/03/29 19:26:20 1.2 @@ -32,6 +32,9 @@ * $FreeBSD: src/lib/libpthread/thread/thr_info.c,v 1.27 2003/09/22 00:40:23 davidxu Exp $ * $DragonFly$ */ + +#include + #include #include #include @@ -131,7 +134,7 @@ _thread_dump_info(void) static void dump_thread(int fd, pthread_t pthread, int long_version) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); char s[512]; int i;