summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-11-05 18:18:45 +0000
committerdeischen <deischen@FreeBSD.org>2003-11-05 18:18:45 +0000
commitc99795abd558686b63561ba8582d38069ff922f3 (patch)
tree791d708824a3b6b4b6afa09f04aa09ab46e1afd1 /lib/libkse
parenteca908227a6718447bf2a8bb6e539c33dd4e99d6 (diff)
downloadFreeBSD-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.c7
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);
OpenPOWER on IntegriCloud