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) {
222222// that actually work.
223223pub const TIMERFD_CLOCK = timerfd_clockid_t;
224224pub const timerfd_clockid_t = switch (native_os) {
225 .linux, .freebsd => enum(u32) {
225 .freebsd => enum(u32) {
226226 REALTIME = 0,
227227 MONOTONIC = 1,
228228 _,
229229 },
230 .linux => linux.timerfd_clockid_t,
230231 else => clockid_t,
231232};
232233