From d2d187eaaa4fecd33bf654dcd9013ca2ddbdef5b Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Sun, 8 Jun 2025 22:53:52 +0200 Subject: [PATCH] Work around untyped nil --- core/sys/linux/sys.odin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 0e4cebce2..f28a5fdb2 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -1413,7 +1413,8 @@ umask :: proc "contextless" (mask: Mode) -> Mode { Available since Linux 1.0. */ gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) { - ret := syscall(SYS_gettimeofday, tv, nil) + null: uintptr + ret := syscall(SYS_gettimeofday, tv, null) return Errno(-ret) }