summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authord <d@openbsd.org>1998-12-21 07:45:12 +0000
committerd <d@openbsd.org>1998-12-21 07:45:12 +0000
commit11c189d895eecd34dbbc01993b3a8acf37c97821 (patch)
treec2116b88fff77d1960ce791f6d8f9d14034e02e5 /lib/libpthread
parentdump thread info on PANIC (diff)
downloadwireguard-openbsd-11c189d895eecd34dbbc01993b3a8acf37c97821.tar.xz
wireguard-openbsd-11c189d895eecd34dbbc01993b3a8acf37c97821.zip
add variable to force linkage
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_autoinit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libpthread/uthread/uthread_autoinit.c b/lib/libpthread/uthread/uthread_autoinit.c
index 6cebea471ac..0fdf5ca58e9 100644
--- a/lib/libpthread/uthread/uthread_autoinit.c
+++ b/lib/libpthread/uthread/uthread_autoinit.c
@@ -51,3 +51,8 @@ _thread_init_constructor()
}
#endif /* GNU C */
+/*
+ * Dummy symbol referenced by uthread_init.o so this compilation unit
+ * is always loaded.
+ */
+int _thread_autoinit_hook = 0;