提交 3b5e6905 编写于 作者: R Rich Felker

fix ppoll with null timeout argument

上级 2c1cd239
......@@ -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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册