From 7f03cfe161a2f7b5abbd00ab1ea29ddd6190d435 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 25 Aug 2021 00:00:39 -0700 Subject: std.os: more reorganization efforts * std lib tests are passing on x86_64-linux with and without -lc * stage2 is building from source on x86_64-linux * down to 38 remaining uses of `usingnamespace` --- lib/std/Thread/ResetEvent.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/Thread/ResetEvent.zig') diff --git a/lib/std/Thread/ResetEvent.zig b/lib/std/Thread/ResetEvent.zig index d9304dd70b..d85cf7f133 100644 --- a/lib/std/Thread/ResetEvent.zig +++ b/lib/std/Thread/ResetEvent.zig @@ -152,7 +152,7 @@ pub const PosixEvent = struct { pub fn timedWait(ev: *PosixEvent, timeout_ns: u64) TimedWaitResult { var ts: os.timespec = undefined; var timeout_abs = timeout_ns; - os.clock_gettime(os.CLOCK_REALTIME, &ts) catch return .timed_out; + os.clock_gettime(os.CLOCK.REALTIME, &ts) catch return .timed_out; timeout_abs += @intCast(u64, ts.tv_sec) * time.ns_per_s; timeout_abs += @intCast(u64, ts.tv_nsec); ts.tv_sec = @intCast(@TypeOf(ts.tv_sec), @divFloor(timeout_abs, time.ns_per_s)); -- cgit v1.2.3