summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2011-09-28 18:52:47 +0000
committerfgsch <fgsch@openbsd.org>2011-09-28 18:52:47 +0000
commitbd805e46aa5d8b74e3bf46015c9c2aa07791792e (patch)
treec0f615a5827d1ee1b494d1185283dbc53265fcfd /lib/libpthread/uthread
parentOops, do not do last minute edits before commit... Make the previous change (diff)
downloadwireguard-openbsd-bd805e46aa5d8b74e3bf46015c9c2aa07791792e.tar.xz
wireguard-openbsd-bd805e46aa5d8b74e3bf46015c9c2aa07791792e.zip
make sure that `references' is not optimized away as it is required for the
static version of pthread. fixes quite a few regression tests. miod@ ok
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c
index 216ce62bef8..05078d5fb3f 100644
--- a/lib/libpthread/uthread/uthread_init.c
+++ b/lib/libpthread/uthread/uthread_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_init.c,v 1.45 2010/06/27 03:14:28 guenther Exp $ */
+/* $OpenBSD: uthread_init.c,v 1.46 2011/09/28 18:52:47 fgsch Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -76,7 +76,7 @@ extern int _thread_autoinit_dummy_decl;
* MUST be in this table. This is necessary to force the proper version to
* be used when linking -static.
*/
-static void *references[] = {
+static void *references[] __used = {
&_exit,
&accept,
&bind,