std.posix: Use separate clock ID enums for clock_gettime() and timerfd_create() (#22627)
This commit is contained in:
@@ -41,7 +41,7 @@ test "timer" {
|
||||
var err: linux.E = linux.E.init(epoll_fd);
|
||||
try expect(err == .SUCCESS);
|
||||
|
||||
const timer_fd = linux.timerfd_create(linux.CLOCK.MONOTONIC, .{});
|
||||
const timer_fd = linux.timerfd_create(linux.TIMERFD_CLOCK.MONOTONIC, .{});
|
||||
try expect(linux.E.init(timer_fd) == .SUCCESS);
|
||||
|
||||
const time_interval = linux.timespec{
|
||||
|
||||
Reference in New Issue
Block a user