authorgravatar for mrjbq7@gmail.comJohn Benediktsson <mrjbq7@gmail.com> 2025-02-02 10:16:59-08:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-03 15:44:27+01:00
logd358ef804eb4aeba16bc2b285d9e3b146b1a1fba
tree6b0e9268cb497080b1091f73e92062759e949593
parent6a1b76a02c2bfb7a66a2c50fd5737c711d05ec04

std.c: use linux.timerfd_clockid_t


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/c.zig+2-1
...@@ -222,11 +222,12 @@ pub const ARCH = switch (native_os) {...@@ -222,11 +222,12 @@ pub const ARCH = switch (native_os) {
222// that actually work.222// that actually work.
223pub const TIMERFD_CLOCK = timerfd_clockid_t;223pub const TIMERFD_CLOCK = timerfd_clockid_t;
224pub const timerfd_clockid_t = switch (native_os) {224pub const timerfd_clockid_t = switch (native_os) {
225 .linux, .freebsd => enum(u32) {225 .freebsd => enum(u32) {
226 REALTIME = 0,226 REALTIME = 0,
227 MONOTONIC = 1,227 MONOTONIC = 1,
228 _,228 _,
229 },229 },
230 .linux => linux.timerfd_clockid_t,
230 else => clockid_t,231 else => clockid_t,
231};232};
232233