This commit is contained in:
topjohnwu 2022-08-27 05:27:23 -07:00
parent d1d26f4481
commit 646260ad6d

View File

@ -9,10 +9,10 @@
static inline int sigtimedwait(const sigset_t* set, siginfo_t* info, const timespec* timeout) {
union {
sigset_t set;
sigset_t set64;
sigset64_t set64;
} s{};
s.set = *set;
return syscall(__NR_rt_sigtimedwait, &s.set64, info, timeout, sizeof(sigset64_t));
return syscall(__NR_rt_sigtimedwait, &s.set64, info, timeout, sizeof(s.set64));
}
static inline int fexecve(int fd, char* const* argv, char* const* envp) {