mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
std.Io.Threaded: only linux supports fileHardLink
This commit is contained in:
@@ -5154,8 +5154,7 @@ fn fileHardLink(
|
||||
options: File.HardLinkOptions,
|
||||
) File.HardLinkError!void {
|
||||
_ = userdata;
|
||||
if (is_windows) return error.OperationUnsupported;
|
||||
if (native_os == .wasi and !builtin.link_libc) @panic("TODO");
|
||||
if (native_os != .linux) return error.OperationUnsupported;
|
||||
|
||||
var new_path_buffer: [posix.PATH_MAX]u8 = undefined;
|
||||
const new_sub_path_posix = try pathToPosix(new_sub_path, &new_path_buffer);
|
||||
|
||||
Reference in New Issue
Block a user