Skip to content

Commit

Permalink
backend/io_uring: fix build for zig 0.13 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jun 24, 2024
2 parents a42b74a + 7ba7645 commit 1dd3c90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/io_uring.zig
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ pub const Loop = struct {
self.add(c_cancel);
}

fn timer_next(self: *Loop, next_ms: u64) linux.timespec {
fn timer_next(self: *Loop, next_ms: u64) linux.kernel_timespec {
// Get the timestamp of the absolute time that we'll execute this timer.
// There are lots of failure scenarios here in math. If we see any
// of them we just use the maximum value.
const max: linux.timespec = .{
const max: linux.kernel_timespec = .{
.tv_sec = std.math.maxInt(isize),
.tv_nsec = std.math.maxInt(isize),
};
Expand Down Expand Up @@ -955,13 +955,13 @@ pub const Operation = union(OperationType) {
},

timer: struct {
next: linux.timespec,
next: linux.kernel_timespec,

/// Only used internally. If this is non-null and timer is
/// CANCELLED, then the timer is rearmed automatically with this
/// as the next time. The callback will not be called on the
/// cancellation.
reset: ?linux.timespec = null,
reset: ?linux.kernel_timespec = null,
},

timer_remove: struct {
Expand Down

0 comments on commit 1dd3c90

Please sign in to comment.