mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 06:32:16 +00:00
fix ppoll with null timeout argument
This commit is contained in:
@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask)
|
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,
|
||||||
return syscall_cp(SYS_ppoll, fds, n, &tmp, mask);
|
to ? (struct timespec []){*to} : 0, mask);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user