| ... | @@ -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. |
| 223 | pub const TIMERFD_CLOCK = timerfd_clockid_t; | 223 | pub const TIMERFD_CLOCK = timerfd_clockid_t; |
| 224 | pub const timerfd_clockid_t = switch (native_os) { | 224 | pub 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 | }; |
| 232 | | 233 | |