From c565a889f90d8cb077186632953fc92a0473b5ce Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Apr 2022 14:20:17 -0700 Subject: [PATCH] pty: use libc ioctl for compat --- src/Pty.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pty.zig b/src/Pty.zig index 51b2d0725..8a31fdcb0 100644 --- a/src/Pty.zig +++ b/src/Pty.zig @@ -83,7 +83,7 @@ pub fn childPreExec(self: Pty) !void { if (setsid() < 0) return error.ProcessGroupFailed; // Set controlling terminal - if (std.os.linux.ioctl(self.slave, c.TIOCSCTTY, 0) < 0) + if (std.c.ioctl(self.slave, c.TIOCSCTTY, @as(c_ulong, 0)) < 0) return error.SetControllingTerminalFailed; // Can close master/slave pair now