Merge pull request #5298 from slowhei/master

Added missing parameter to `gettimeofday`
This commit is contained in:
Jeroen van Rijn
2025-06-08 22:37:07 +02:00
committed by GitHub

View File

@@ -1413,7 +1413,7 @@ umask :: proc "contextless" (mask: Mode) -> Mode {
Available since Linux 1.0.
*/
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
ret := syscall(SYS_gettimeofday, tv)
ret := syscall(SYS_gettimeofday, tv, nil)
return Errno(-ret)
}