mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.fs: fix build error in selfExePath() on openbsd
This commit is contained in:
parent
7827dc03cb
commit
616488eec7
1 changed files with 1 additions and 2 deletions
|
|
@ -490,8 +490,7 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 {
|
||||||
const resolved_path = std.fmt.bufPrintSentinel(&resolved_path_buf, "{s}/{s}", .{
|
const resolved_path = std.fmt.bufPrintSentinel(&resolved_path_buf, "{s}/{s}", .{
|
||||||
a_path,
|
a_path,
|
||||||
std.os.argv[0],
|
std.os.argv[0],
|
||||||
0,
|
}, 0) catch continue;
|
||||||
}) catch continue;
|
|
||||||
|
|
||||||
var real_path_buf: [max_path_bytes]u8 = undefined;
|
var real_path_buf: [max_path_bytes]u8 = undefined;
|
||||||
if (posix.realpathZ(resolved_path, &real_path_buf)) |real_path| {
|
if (posix.realpathZ(resolved_path, &real_path_buf)) |real_path| {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue