Don't declare the malloc lock; use the declaration provided in libc.

Noticed by:	bde
This commit is contained in:
Daniel Eischen 2003-11-05 18:18:45 +00:00
parent 82358b1b5a
commit 94db4dd759
2 changed files with 12 additions and 2 deletions

View File

@ -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);

View File

@ -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);