diff options
| author | flysand7 <yyakut.ac@gmail.com> | 2023-12-06 00:09:10 +1100 |
|---|---|---|
| committer | flysand7 <yyakut.ac@gmail.com> | 2023-12-06 00:09:10 +1100 |
| commit | cb66ed52cefde3274b9b055a1fecbf938e4b5155 (patch) | |
| tree | 3d14f2ffe3b198ad5a7b85a2a4d95f9600019e2c /core/sys/linux | |
| parent | 03282c1234ea24e772c61fcb7b1b0a80245f78d8 (diff) | |
[sys/linux]: Fix epoll_wait on arm64
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/sys.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index d7aaed0b5..d6a03186b 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -2411,7 +2411,11 @@ epoll_wait :: proc(epfd: Fd, events: [^]EPoll_Event, count: i32, timeout: i32) - return errno_unwrap(ret, i32) } else { // Convert milliseconds to nanosecond timespec - ret := syscall(SYS_epoll_pwait, epfd, events, count, timeout, nil) + timeout_ns := Time_Spec { + time_sec = timeout * 1000, + time_nsec = 0, + } + ret := syscall(SYS_epoll_pwait, epfd, events, count, &timeout_ns, rawptr(nil)) return errno_unwrap(ret, i32) } } |