summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-03-19 03:48:18 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-03-19 03:48:18 +0000
commit2e54075cbf0bdb1c030c1bee214696eb450e41de (patch)
treec6ea0be1ebe2bf8024a2c3d2ff1165702eb8aee9 /distrib
parentc705f6f911bf91286a912886df7ab46ed801fac6 (diff)
Add DEF_STRONG(pthread_self) to match libc and avoid duplicate definitions
that lld is unhappy about ok jsg@ deraadt@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/special/libstubs/pthread_once.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/special/libstubs/pthread_once.c b/distrib/special/libstubs/pthread_once.c
index e9acccb7d9a..e8adc2b3b6a 100644
--- a/distrib/special/libstubs/pthread_once.c
+++ b/distrib/special/libstubs/pthread_once.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread_once.c,v 1.2 2018/03/15 13:27:40 beck Exp $ */
+/* $OpenBSD: pthread_once.c,v 1.3 2018/03/19 03:48:17 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>s
* Copyright (c) 2018 Bob Beck <beck@openbsd.org>
@@ -40,3 +40,4 @@ pthread_self(void)
/* needs to differ from 0 inited value. */
return (pthread_t) 1;
}
+DEF_STRONG(pthread_self);