diff options
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_autoinit.c | 2 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_init.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_autoinit.c b/lib/libpthread/uthread/uthread_autoinit.c index 0fdf5ca58e9..197b7fb83c6 100644 --- a/lib/libpthread/uthread/uthread_autoinit.c +++ b/lib/libpthread/uthread/uthread_autoinit.c @@ -55,4 +55,4 @@ _thread_init_constructor() * Dummy symbol referenced by uthread_init.o so this compilation unit * is always loaded. */ -int _thread_autoinit_hook = 0; +int _thread_autoinit_dummy_decl = 0; diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c index b62a60d7a5d..1202429e51a 100644 --- a/lib/libpthread/uthread/uthread_init.c +++ b/lib/libpthread/uthread/uthread_init.c @@ -45,6 +45,7 @@ #ifdef _THREAD_SAFE #include <machine/reg.h> #include <pthread.h> +#include <pthread_np.h> #include "pthread_private.h" /* Allocate space for global thread variables here: */ @@ -85,7 +86,7 @@ pthread_cond_t _gc_cond = NULL; struct sigaction _thread_sigact[NSIG]; /* Automatic init module. */ -extern int _thread_autoinit_hook; +extern int _thread_autoinit_dummy_decl; #ifdef GCC_2_8_MADE_THREAD_AWARE /* see src/gnu/usr.bin/gcc/libgcc2.c */ @@ -304,7 +305,7 @@ _thread_init(void) PANIC("Failed to initialise garbage collector mutex or condvar"); /* Pull in automatic thread unit. */ - _thread_autoinit_hook = 1; + _thread_autoinit_dummy_decl = 1; return; } |