Skip to content

Commit b2c8546

Browse files
committed
std.os.linux.io_uring: fix ABI error
`register_files_update` was passing a pointer to a Zig struct to the kernel.
1 parent 342bae0 commit b2c8546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os/linux/io_uring.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ pub const IO_Uring = struct {
954954
pub fn register_files_update(self: *IO_Uring, offset: u32, fds: []const os.fd_t) !void {
955955
assert(self.fd >= 0);
956956

957-
const FilesUpdate = struct {
957+
const FilesUpdate = extern struct {
958958
offset: u32,
959959
resv: u32,
960960
fds: u64 align(8),

0 commit comments

Comments
 (0)