From c99795abd558686b63561ba8582d38069ff922f3 Mon Sep 17 00:00:00 2001 From: deischen Date: Wed, 5 Nov 2003 18:18:45 +0000 Subject: Don't declare the malloc lock; use the declaration provided in libc. Noticed by: bde --- lib/libpthread/thread/thr_fork.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/libpthread') diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c index 6989174..401aae9 100644 --- a/lib/libpthread/thread/thr_fork.c +++ b/lib/libpthread/thread/thr_fork.c @@ -39,9 +39,14 @@ #include #include #include + +#include "libc_private.h" #include "thr_private.h" -extern spinlock_t *__malloc_lock; +/* + * For a while, allow libpthread to work with a libc that doesn't + * export the malloc lock. + */ #pragma weak __malloc_lock __weak_reference(_fork, fork); -- cgit v1.1