1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122130
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);