mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
avoid usage of execv on Haiku
This commit is contained in:
parent
8cebbc352a
commit
db8eae65de
@ -800,7 +800,10 @@ pub fn getSelfExeSharedLibPaths(allocator: *Allocator) error{OutOfMemory}![][:0]
|
||||
}
|
||||
|
||||
/// Tells whether calling the `execv` or `execve` functions will be a compile error.
|
||||
pub const can_execv = std.builtin.os.tag != .windows;
|
||||
pub const can_execv = switch (builtin.os.tag) {
|
||||
.windows, .haiku => false,
|
||||
else => true,
|
||||
};
|
||||
|
||||
pub const ExecvError = std.os.ExecveError || error{OutOfMemory};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user