diff --git a/src/backend/posix.zig b/src/backend/posix.zig index 36c32f1..202a3a7 100644 --- a/src/backend/posix.zig +++ b/src/backend/posix.zig @@ -141,7 +141,12 @@ fn tcflush(fd: std.posix.fd_t, action: TCFLUSH) !void { @intFromEnum(action), ); }, - .macos => try std.c.tcflush(fd, @intFromEnum(action)), + .macos => b: { + const c = @cImport({ + @cInclude("termios.h"); + }); + break :b try c.tcflush(fd, @intFromEnum(action)); + }, else => @compileError("tcflush unimplemented on this OS"), }; return switch (std.posix.errno(result)) {