fix missing timeout argument to futex syscall in __futexwait

This commit is contained in:
Patrick Oppenlander 2018-06-01 10:49:20 +10:00 committed by Rich Felker
parent 05ac345f89
commit a0d64dccbc
1 changed files with 2 additions and 2 deletions

View File

@ -161,8 +161,8 @@ static inline void __wake(volatile void *addr, int cnt, int priv)
static inline void __futexwait(volatile void *addr, int val, int priv)
{
if (priv) priv = FUTEX_PRIVATE;
__syscall(SYS_futex, addr, FUTEX_WAIT|priv, val) != -ENOSYS ||
__syscall(SYS_futex, addr, FUTEX_WAIT, val);
__syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0) != -ENOSYS ||
__syscall(SYS_futex, addr, FUTEX_WAIT, val, 0);
}
void __acquire_ptc(void);