mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 09:03:12 +00:00
gettimeofday takes nullable pointers
This commit is contained in:
parent
4d106076c3
commit
fee09009a8
@ -1030,7 +1030,7 @@ pub fn clock_settime(clk_id: i32, tp: *const timespec) usize {
|
||||
return syscall2(.clock_settime, @as(usize, @bitCast(@as(isize, clk_id))), @intFromPtr(tp));
|
||||
}
|
||||
|
||||
pub fn gettimeofday(tv: *timeval, tz: *timezone) usize {
|
||||
pub fn gettimeofday(tv: ?*timeval, tz: ?*timezone) usize {
|
||||
return syscall2(.gettimeofday, @intFromPtr(tv), @intFromPtr(tz));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user