projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add port io functions to sys/io.h
[musl]
/
src
/
linux
/
ppoll.c
diff --git
a/src/linux/ppoll.c
b/src/linux/ppoll.c
index
8f4aab9
..
f026889
100644
(file)
--- a/
src/linux/ppoll.c
+++ b/
src/linux/ppoll.c
@@
-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, &tmp, mask
);
+ return syscall_cp(SYS_ppoll, fds, n,
+
to ? (struct timespec []){*to} : 0, mask, __SYSCALL_SSLEN
);
}
}