commit 9646801bed8f0f36b59deecff32ef02868ed72f2 (tree) parent 14e1e5f6d872a7a8a8d98fa48cc6f41f002a7d1f Author: Andrew Kelley <andrew@ziglang.org> Date: Fri, 30 Jan 2026 22:06:33 -0800 std: fix Preopens compilation error Diffstat:
| M | lib/std/process/Preopens.zig | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/std/process/Preopens.zig b/lib/std/process/Preopens.zig @@ -29,7 +29,10 @@ pub fn get(p: *const Preopens, name: []const u8) ?Resource { switch (native_os) { .wasi => { const index = p.map.getIndex(name) orelse return null; - if (index <= 2) return .{ .file = .{ .handle = @intCast(index) } }; + if (index <= 2) return .{ .file = .{ + .handle = @intCast(index), + .flags = .{ .nonblocking = false }, + } }; return .{ .dir = .{ .handle = @intCast(index) } }; }, else => {