mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Work around untyped nil
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user