--- src/lib/libthread_xu/thread/thr_stack.c 2005/02/21 13:47:21 1.2 +++ src/lib/libthread_xu/thread/thr_stack.c 2005/03/29 19:26:20 1.3 @@ -30,6 +30,9 @@ #include #include #include + +#include + #include #include #include "thr_private.h" @@ -130,7 +133,7 @@ round_up(size_t size) int _thr_stack_alloc(struct pthread_attr *attr) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); struct stack *spare_stack; size_t stacksize; size_t guardsize;