Skip to content

Commit fbb7b43

Browse files
linusgalimpfard
authored andcommitted
Update use of std.c.O
This is a packed struct instead of a numeric bitflag now.
1 parent c15e185 commit fbb7b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ pub const Editor = struct {
27132713
const system = if (builtin.link_libc and builtin.os.tag == .linux) std.os.linux else std.os.system;
27142714
var ws: system.winsize = undefined;
27152715
if (std.os.system.ioctl(std.io.getStdIn().handle, system.T.IOCGWINSZ, @intFromPtr(&ws)) != 0) {
2716-
const fd = std.os.system.open("/dev/tty", std.os.system.O.RDONLY, @as(std.os.mode_t, 0));
2716+
const fd = std.os.system.open("/dev/tty", .{ .ACCMODE = .RDONLY }, @as(std.os.mode_t, 0));
27172717
if (fd != -1) {
27182718
_ = std.os.system.ioctl(@intCast(fd), system.T.IOCGWINSZ, @intFromPtr(&ws));
27192719
_ = std.os.system.close(@intCast(fd));

0 commit comments

Comments
 (0)