From e507a62834dff07894ad9f074d91101c01c1aa51 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 25 Jul 2024 15:29:54 +0900 Subject: [PATCH] io_uring: link_timeout use kernel_timespec --- src/aio/IoUring.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aio/IoUring.zig b/src/aio/IoUring.zig index 4c73a0b..50c3c11 100644 --- a/src/aio/IoUring.zig +++ b/src/aio/IoUring.zig @@ -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), };