diff --git a/lib/std/c.zig b/lib/std/c.zig index fe8989e4b0fc7bc17d78c7fbe3d6e400fc3c847a..eb45d028025d4650f0f74ec42797dc8d0b907e6d 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -222,11 +222,12 @@ pub const ARCH = switch (native_os) { // that actually work. pub const TIMERFD_CLOCK = timerfd_clockid_t; pub const timerfd_clockid_t = switch (native_os) { - .linux, .freebsd => enum(u32) { + .freebsd => enum(u32) { REALTIME = 0, MONOTONIC = 1, _, }, + .linux => linux.timerfd_clockid_t, else => clockid_t, };