summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-11-05 18:18:45 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-11-05 18:18:45 +0000
commit94db4dd759dc22f1927f945a3611281d99ebbdf4 (patch)
tree791d708824a3b6b4b6afa09f04aa09ab46e1afd1 /lib/libpthread
parent82358b1b5ae518faa16aa8857efff6d19deb517c (diff)
Notes
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_fork.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c
index 6989174509eb..401aae9e1883 100644
--- a/lib/libpthread/thread/thr_fork.c
+++ b/lib/libpthread/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);