chore: fix compiling fd.zig on linux (#8630)

This commit is contained in:
Tiramify (A.K. Daniel)
2024-02-02 01:31:54 +00:00
committed by GitHub
parent 3a1229d03d
commit 330a4744de

View File

@@ -312,7 +312,7 @@ pub const FDImpl = packed struct {
const fd = this.system();
try writer.print("{d}", .{fd});
if (env.isDebug and fd >= 3) print_with_path: {
var path_buf: [1024]u8 = undefined;
var path_buf: bun.PathBuffer = undefined;
const path = std.os.getFdPath(fd, &path_buf) catch break :print_with_path;
try writer.print("[{s}]", .{path});
}