| ... | @@ -800,7 +800,10 @@ pub fn getSelfExeSharedLibPaths(allocator: *Allocator) error{OutOfMemory}![][:0] | ... | @@ -800,7 +800,10 @@ pub fn getSelfExeSharedLibPaths(allocator: *Allocator) error{OutOfMemory}![][:0] |
| 800 | } | 800 | } |
| 801 | | 801 | |
| 802 | /// Tells whether calling the `execv` or `execve` functions will be a compile error. | 802 | /// Tells whether calling the `execv` or `execve` functions will be a compile error. |
| 803 | pub const can_execv = std.builtin.os.tag != .windows; | 803 | pub const can_execv = switch (builtin.os.tag) { |
| | 804 | .windows, .haiku => false, |
| | 805 | else => true, |
| | 806 | }; |
| 804 | | 807 | |
| 805 | pub const ExecvError = std.os.ExecveError || error{OutOfMemory}; | 808 | pub const ExecvError = std.os.ExecveError || error{OutOfMemory}; |
| 806 | | 809 | |