diff options
author | deischen <deischen@FreeBSD.org> | 2003-11-05 18:18:45 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-11-05 18:18:45 +0000 |
commit | c99795abd558686b63561ba8582d38069ff922f3 (patch) | |
tree | 791d708824a3b6b4b6afa09f04aa09ab46e1afd1 /lib/libkse | |
parent | eca908227a6718447bf2a8bb6e539c33dd4e99d6 (diff) | |
download | FreeBSD-src-c99795abd558686b63561ba8582d38069ff922f3.zip FreeBSD-src-c99795abd558686b63561ba8582d38069ff922f3.tar.gz |
Don't declare the malloc lock; use the declaration provided in libc.
Noticed by: bde
Diffstat (limited to 'lib/libkse')
-rw-r--r-- | lib/libkse/thread/thr_fork.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_fork.c b/lib/libkse/thread/thr_fork.c index 6989174..401aae9 100644 --- a/lib/libkse/thread/thr_fork.c +++ b/lib/libkse/thread/thr_fork.c @@ -39,9 +39,14 @@ #include <pthread.h> #include <spinlock.h> #include <sys/signalvar.h> + +#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); |