mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 07:03:11 +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.
|
// that actually work.
|
||||||
pub const TIMERFD_CLOCK = timerfd_clockid_t;
|
pub const TIMERFD_CLOCK = timerfd_clockid_t;
|
||||||
pub const timerfd_clockid_t = switch (native_os) {
|
pub const timerfd_clockid_t = switch (native_os) {
|
||||||
.linux, .freebsd => enum(u32) {
|
.freebsd => enum(u32) {
|
||||||
REALTIME = 0,
|
REALTIME = 0,
|
||||||
MONOTONIC = 1,
|
MONOTONIC = 1,
|
||||||
_,
|
_,
|
||||||
},
|
},
|
||||||
|
.linux => linux.timerfd_clockid_t,
|
||||||
else => clockid_t,
|
else => clockid_t,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user