mirror of
https://github.com/fluencelabs/musl
synced 2025-05-29 07:31:53 +00:00
Avoid __wait redeclaration
This commit is contained in:
parent
6159fc337b
commit
b87ccd69c6
@ -1,5 +1,6 @@
|
|||||||
#include "pthread_impl.h"
|
#include "pthread_impl.h"
|
||||||
|
|
||||||
|
#ifndef __wait
|
||||||
void __wait(volatile int *addr, volatile int *waiters, int val, int priv)
|
void __wait(volatile int *addr, volatile int *waiters, int val, int priv)
|
||||||
{
|
{
|
||||||
int spins=100;
|
int spins=100;
|
||||||
@ -15,3 +16,4 @@ void __wait(volatile int *addr, volatile int *waiters, int val, int priv)
|
|||||||
}
|
}
|
||||||
if (waiters) a_dec(waiters);
|
if (waiters) a_dec(waiters);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user