From 2e54075cbf0bdb1c030c1bee214696eb450e41de Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Mon, 19 Mar 2018 03:48:18 +0000 Subject: Add DEF_STRONG(pthread_self) to match libc and avoid duplicate definitions that lld is unhappy about ok jsg@ deraadt@ --- distrib/special/libstubs/pthread_once.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'distrib') 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 s * Copyright (c) 2018 Bob Beck @@ -40,3 +40,4 @@ pthread_self(void) /* needs to differ from 0 inited value. */ return (pthread_t) 1; } +DEF_STRONG(pthread_self); -- cgit v1.2.3