authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-04 21:48:37-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-05 20:28:58-08:00
log3859250c4d83d1611d256976e0845b16396a2e5c
tree6e287391ff81668e4843456a89eaa37a4de1d98a
parent39605bd6bc1ce8be4a775e5530a1d866c2a700d7

std.Io.Threaded: only linux supports fileHardLink


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

lib/std/Io/Threaded.zig+1-2
......@@ -5154,8 +5154,7 @@ fn fileHardLink(
51545154 options: File.HardLinkOptions,
51555155) File.HardLinkError!void {
51565156 _ = userdata;
5157 if (is_windows) return error.OperationUnsupported;
5158 if (native_os == .wasi and !builtin.link_libc) @panic("TODO");
5157 if (native_os != .linux) return error.OperationUnsupported;
51595158
51605159 var new_path_buffer: [posix.PATH_MAX]u8 = undefined;
51615160 const new_sub_path_posix = try pathToPosix(new_sub_path, &new_path_buffer);