Commit db8eae65de

Al Hoang <3811822-hoanga@users.noreply.gitlab.com>
2021-05-22 07:56:30
avoid usage of execv on Haiku
1 parent 8cebbc3
Changed files (1)
lib
lib/std/process.zig
@@ -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};