Add FreeBSD support

Following 7aeadb06ee
This commit is contained in:
-k
2025-06-12 21:15:11 -04:00
committed by Mitchell Hashimoto
parent 6fe72db0c4
commit e09657e263
9 changed files with 32 additions and 23 deletions

View File

@@ -323,7 +323,7 @@ fn setupFd(src: File.Handle, target: i32) !void {
}
}
},
.ios, .macos => {
.freebsd, .ios, .macos => {
// Mac doesn't support dup3 so we use dup2. We purposely clear
// CLO_ON_EXEC for this fd.
const flags = try posix.fcntl(src, posix.F.GETFD, 0);