Commit d358ef804e

John Benediktsson <mrjbq7@gmail.com>
2025-02-02 19:16:59
std.c: use linux.timerfd_clockid_t
1 parent 6a1b76a
Changed files (1)
lib
std
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,
 };