mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
[sys/linux]: Fix time(2) syscall not taking a pointer on ARM64
This commit is contained in:
@@ -2184,7 +2184,7 @@ time :: proc "contextless" (tloc: ^uint) -> (Errno) {
|
|||||||
return Errno(-ret)
|
return Errno(-ret)
|
||||||
} else {
|
} else {
|
||||||
ts: Time_Spec
|
ts: Time_Spec
|
||||||
ret := syscall(SYS_clock_gettime, Clock_Id.REALTIME, ts)
|
ret := syscall(SYS_clock_gettime, Clock_Id.REALTIME, &ts)
|
||||||
tloc^ = ts.time_sec
|
tloc^ = ts.time_sec
|
||||||
return Errno(-ret)
|
return Errno(-ret)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user