Sfoglia il codice sorgente

[sys/linux]: Fix time(2) syscall not taking a pointer on ARM64

flysand7 1 anno fa
parent
commit
4e145cf69c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/sys/linux/sys.odin

+ 1 - 1
core/sys/linux/sys.odin

@@ -2184,7 +2184,7 @@ time :: proc "contextless" (tloc: ^uint) -> (Errno) {
 		return Errno(-ret)
 	} else {
 		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
 		return Errno(-ret)
 	}