fix: handle c_int overflow when linking libc for some requests (wtf?).

This commit is contained in:
Jackson Netherwood-Imig
2026-03-09 15:28:12 -07:00
parent 685c302b9f
commit b5eae2ee63
+1 -1
View File
@@ -11,7 +11,7 @@ pub fn ioctl(fd: std.posix.fd_t, request: Request, arg: anytype) IoctlError!void
else => @compileError("Unsupported type: " ++ @typeName(@TypeOf(arg))), else => @compileError("Unsupported type: " ++ @typeName(@TypeOf(arg))),
}; };
const rc = std.posix.system.ioctl(fd, @intCast(@intFromEnum(request)), casted); const rc = std.posix.system.ioctl(fd, @bitCast(@intFromEnum(request)), casted);
return switch (std.posix.errno(rc)) { return switch (std.posix.errno(rc)) {
.SUCCESS => {}, .SUCCESS => {},