From fe85f77293a79915e66ea00adaab7fd30f4cecfc Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 29 Apr 1998 09:02:16 +0000 Subject: Stubs are required in libc so that it can be used with libpthread (and kernel threads), but weak symbols and non-weak symbols of the same name built into libc_r result in unpredictable linking. --- lib/libc/gen/_spinlock_stub.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/_spinlock_stub.c b/lib/libc/gen/_spinlock_stub.c index bea4d2b..5314d85 100644 --- a/lib/libc/gen/_spinlock_stub.c +++ b/lib/libc/gen/_spinlock_stub.c @@ -29,11 +29,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: _spinlock_stub.c,v 1.1 1998/03/09 06:46:21 jb Exp $ * */ #include + +/* Don't build these stubs into libc_r: */ +#ifndef _THREAD_SAFE #include "spinlock.h" /* @@ -58,3 +61,4 @@ void _atomic_unlock_stub(long *lck) { } +#endif -- cgit v1.1