From 20b19d0092a70999ff58a0f8969e64ec4ecf6c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Tue, 10 Nov 2020 05:24:56 +0000 Subject: [PATCH] openbsd: add time definitions for gettimeofday() --- lib/std/os/bits/openbsd.zig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/std/os/bits/openbsd.zig b/lib/std/os/bits/openbsd.zig index 5068bf56bf..472b93a34a 100644 --- a/lib/std/os/bits/openbsd.zig +++ b/lib/std/os/bits/openbsd.zig @@ -203,7 +203,17 @@ pub const libc_stat = extern struct { pub const timespec = extern struct { tv_sec: time_t, - tv_nsec: isize, + tv_nsec: c_long, +}; + +pub const timeval = extern struct { + tv_sec: time_t, + tv_usec: c_long, +}; + +pub const timezone = extern struct { + tz_minuteswest: c_int, + tz_dsttime: c_int, }; pub const MAXNAMLEN = 255;