--- src/lib/libthread_xu/thread/thr_kill.c 2005/02/01 12:38:27 1.1 +++ src/lib/libthread_xu/thread/thr_kill.c 2005/03/29 19:26:20 1.2 @@ -32,6 +32,9 @@ * $FreeBSD: src/lib/libpthread/thread/thr_kill.c,v 1.16 2003/06/28 09:55:02 davidxu Exp $ * $DragonFly$ */ + +#include + #include #include #include @@ -42,7 +45,7 @@ __weak_reference(_pthread_kill, pthread_ int _pthread_kill(pthread_t pthread, int sig) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); int ret; /* Check for invalid signal numbers: */