--- src/lib/libthread_xu/thread/thr_resume_np.c 2005/02/01 12:38:27 1.1 +++ src/lib/libthread_xu/thread/thr_resume_np.c 2005/03/29 19:26:20 1.2 @@ -32,6 +32,9 @@ * $FreeBSD: src/lib/libpthread/thread/thr_resume_np.c,v 1.18 2003/07/23 02:11:07 deischen Exp $ * $DragonFly$ */ + +#include + #include #include #include "thr_private.h" @@ -45,7 +48,7 @@ static void resume_common(struct pthread int _pthread_resume_np(pthread_t thread) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); int ret; /* Add a reference to the thread: */ @@ -62,7 +65,7 @@ _pthread_resume_np(pthread_t thread) void _pthread_resume_all_np(void) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); struct pthread *thread; /* Take the thread list lock: */