mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix ppoll with null timeout argument
This commit is contained in:
parent
2c1cd2399a
commit
3b5e69052a
1 changed files with 2 additions and 2 deletions
|
@ -4,6 +4,6 @@
|
|||
|
||||
int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask)
|
||||
{
|
||||
struct timespec tmp = *to;
|
||||
return syscall_cp(SYS_ppoll, fds, n, &tmp, mask);
|
||||
return syscall_cp(SYS_ppoll, fds, n,
|
||||
to ? (struct timespec []){*to} : 0, mask);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue