aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorRickard Andersson <gonz@severnatazvezda.com>2023-06-15 08:54:42 +0300
committerRickard Andersson <gonz@severnatazvezda.com>2023-06-15 08:54:42 +0300
commitdce57627c972276be8398ec0e2efcb7782b650d8 (patch)
treec8262ce70221a626fd71a201b4720643862ea112 /core/sys
parenta5ed5883c71282b2454e3e320fc7c8703b9fa952 (diff)
fix: remove redefinition of `timespec`
They are in the same package, so it's accessible anyway.
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/unix/syscalls_linux.odin5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/sys/unix/syscalls_linux.odin b/core/sys/unix/syscalls_linux.odin
index fdfc27187..92b551041 100644
--- a/core/sys/unix/syscalls_linux.odin
+++ b/core/sys/unix/syscalls_linux.odin
@@ -2077,11 +2077,6 @@ sys_fcntl :: proc "contextless" (fd: int, cmd: int, arg: int) -> int {
sys_poll :: proc "contextless" (fds: rawptr, nfds: uint, timeout: int) -> int {
// NOTE: specialcased here because `arm64` does not have `poll`
when ODIN_ARCH == .arm64 {
- // redefined because we can't depend on the `unix` module here
- timespec :: struct {
- tv_sec: i64,
- tv_nsec: i64,
- }
seconds := i64(timeout / 1_000)
nanoseconds := i64((timeout % 1000) * 1_000_000)
timeout_spec := timespec{seconds, nanoseconds}