termio: fix windows build

This commit is contained in:
Mitchell Hashimoto
2024-07-14 15:16:16 -07:00
parent 08ed60ceec
commit b0cd40d1de

View File

@ -1237,7 +1237,7 @@ pub const ReadThread = struct {
}
}
fn threadMainWindows(fd: posix.fd_t, ev: *termio.Termio.ReadData, quit: posix.fd_t) void {
fn threadMainWindows(fd: posix.fd_t, io: *termio.Termio, quit: posix.fd_t) void {
// Always close our end of the pipe when we exit.
defer posix.close(quit);
@ -1258,7 +1258,7 @@ pub const ReadThread = struct {
}
}
@call(.always_inline, termio.Termio.processOutputReadData, .{ ev, buf[0..n] });
@call(.always_inline, termio.Termio.processOutput, .{ io, buf[0..n] });
}
var quit_bytes: windows.DWORD = 0;