std.os.linux.io_uring: fix ABI error

`register_files_update` was passing a pointer to a Zig struct to the kernel.
This commit is contained in:
Veikka Tuominen 2023-01-16 22:25:34 +02:00
parent 342bae02d8
commit b2c85464be

View File

@ -954,7 +954,7 @@ pub const IO_Uring = struct {
pub fn register_files_update(self: *IO_Uring, offset: u32, fds: []const os.fd_t) !void {
assert(self.fd >= 0);
const FilesUpdate = struct {
const FilesUpdate = extern struct {
offset: u32,
resv: u32,
fds: u64 align(8),