Skip to content

Commit

Permalink
io_uring: link_timeout use kernel_timespec
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Jul 25, 2024
1 parent 2ece8f9 commit e507a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aio/IoUring.zig
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ inline fn uring_queue(io: *std.os.linux.IoUring, op: anytype, user_data: u64) ai
break :blk try io.timeout(user_data, &ts, 0, 0);
},
.link_timeout => blk: {
const ts: std.os.linux.timespec = .{
const ts: std.os.linux.kernel_timespec = .{
.tv_sec = @intCast(op.ns / std.time.ns_per_s),
.tv_nsec = @intCast(op.ns % std.time.ns_per_s),
};
Expand Down

0 comments on commit e507a62

Please sign in to comment.