X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flinux%2Fppoll.c;h=9e262477ba93de416a3498f71f6eb2e75a059eec;hb=4cd8b4725907651f329e2f96d428c4e3521643f8;hp=8f4aab9b272a8c3740ebd32bdb233553cb55aa18;hpb=141138c41b5b1cbb74c61690c9b6dbacce4e1983;p=musl diff --git a/src/linux/ppoll.c b/src/linux/ppoll.c index 8f4aab9b..9e262477 100644 --- a/src/linux/ppoll.c +++ b/src/linux/ppoll.c @@ -1,9 +1,10 @@ #define _GNU_SOURCE #include +#include #include "syscall.h" 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, _NSIG/8); }