summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1998-12-23 22:43:06 +0000
committerDavid Leonard <d@cvs.openbsd.org>1998-12-23 22:43:06 +0000
commit57aef68217f0d74fb7207c4f8e6dd7aeccf6ecd4 (patch)
tree4a9e8e17dc6826db28fd5f84a1a36a971ebe145b /lib/libpthread/uthread
parent1638c05848a5bbbd0a9b28cf4a08029548d79607 (diff)
rename linkage variable to match freebsd
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_autoinit.c2
-rw-r--r--lib/libpthread/uthread/uthread_init.c5
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;
}