Work around untyped nil

This commit is contained in:
Jeroen van Rijn
2025-06-08 22:53:52 +02:00
parent 0be7fe4b82
commit d2d187eaaa

View File

@@ -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)
}