mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.c: use linux.timerfd_clockid_t
This commit is contained in:
parent
6a1b76a02c
commit
d358ef804e
@ -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,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user