diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-05-09 15:45:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-09 15:45:42 -0700 |
| commit | 68629fedefd46bad4feed7f9244a3208199d6a0e (patch) | |
| tree | 0d483126b4222796eea87349b79330bb76fc733e /lib/std/os.zig | |
| parent | c9ad1b51993e45942e38079325dcb7b5ce41e877 (diff) | |
| parent | 47e840a9b99c6ca371c89a73350617ba0cad877c (diff) | |
| download | zig-68629fedefd46bad4feed7f9244a3208199d6a0e.tar.gz zig-68629fedefd46bad4feed7f9244a3208199d6a0e.zip | |
Merge pull request #19918 from ziglang/xros
Add support for VisionOS
Diffstat (limited to 'lib/std/os.zig')
| -rw-r--r-- | lib/std/os.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index 53f1bef4fe..ae5babe4ae 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -76,6 +76,7 @@ pub fn isGetFdPathSupportedOnTarget(os: std.Target.Os) bool { .ios, .watchos, .tvos, + .visionos, .linux, .solaris, .illumos, @@ -110,7 +111,7 @@ pub fn getFdPath(fd: std.posix.fd_t, out_buffer: *[MAX_PATH_BYTES]u8) std.posix. const end_index = std.unicode.wtf16LeToWtf8(out_buffer, wide_slice); return out_buffer[0..end_index]; }, - .macos, .ios, .watchos, .tvos => { + .macos, .ios, .watchos, .tvos, .visionos => { // On macOS, we can use F.GETPATH fcntl command to query the OS for // the path to the file descriptor. @memset(out_buffer[0..MAX_PATH_BYTES], 0); |
