Commit 4ec67b7a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

ntdll: Use 32-bit time_t when calling __NR_futex syscall.

parent 730b35ba
......@@ -111,6 +111,17 @@ static int futex_private = 128;
static inline int futex_wait( const int *addr, int val, struct timespec *timeout )
{
#if (defined(__i386__) || defined(__arm__)) && _TIME_BITS==64
if (timeout && sizeof(*timeout) != 8)
{
struct {
long tv_sec;
long tv_nsec;
} timeout32 = { timeout->tv_sec, timeout->tv_nsec };
return syscall( __NR_futex, addr, FUTEX_WAIT | futex_private, val, &timeout32, 0, 0 );
}
#endif
return syscall( __NR_futex, addr, FUTEX_WAIT | futex_private, val, timeout, 0, 0 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment