diff options
author | 1998-12-23 22:43:05 +0000 | |
---|---|---|
committer | 1998-12-23 22:43:05 +0000 | |
commit | cb9bf07bfd20aaaf7ce179fd3a47cdbc385370fa (patch) | |
tree | c3488802e8b6910d3bfa4c7008be45ddbce7dac1 /lib/libpthread | |
parent | remove bogus CACHE_LINE_SIZE (diff) | |
download | wireguard-openbsd-cb9bf07bfd20aaaf7ce179fd3a47cdbc385370fa.tar.xz wireguard-openbsd-cb9bf07bfd20aaaf7ce179fd3a47cdbc385370fa.zip |
rename linkage variable to match freebsd
Diffstat (limited to 'lib/libpthread')
-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; } |