Don't declare the malloc lock; use the declaration provided in libc.
Noticed by: bde
This commit is contained in:
parent
82358b1b5a
commit
94db4dd759
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user