authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-30 22:06:33-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-30 22:06:33-08:00
log9646801bed8f0f36b59deecff32ef02868ed72f2
tree0b943842028dfa962d9e9b779054bcf086d5bd12
parent14e1e5f6d872a7a8a8d98fa48cc6f41f002a7d1f

std: fix Preopens compilation error


1 files changed, 4 insertions(+), 1 deletions(-)

lib/std/process/Preopens.zig+4-1
......@@ -29,7 +29,10 @@ pub fn get(p: *const Preopens, name: []const u8) ?Resource {
2929 switch (native_os) {
3030 .wasi => {
3131 const index = p.map.getIndex(name) orelse return null;
32 if (index <= 2) return .{ .file = .{ .handle = @intCast(index) } };
32 if (index <= 2) return .{ .file = .{
33 .handle = @intCast(index),
34 .flags = .{ .nonblocking = false },
35 } };
3336 return .{ .dir = .{ .handle = @intCast(index) } };
3437 },
3538 else => {