diff --git a/stdlib/public/Concurrency/Deque/Compatibility.swift b/stdlib/public/Concurrency/Deque/Compatibility.swift index 37dc9bf8eecb9..98ec1ae883f8d 100644 --- a/stdlib/public/Concurrency/Deque/Compatibility.swift +++ b/stdlib/public/Concurrency/Deque/Compatibility.swift @@ -33,7 +33,7 @@ extension Array { // The bug is caused by a bogus precondition inside a non-inlinable stdlib // method, so to determine if we're affected, we need to check the currently // running OS version. - #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) + #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) guard #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) else { // The OS is too old to be affected by this bug. return false diff --git a/stdlib/public/libexec/swift-backtrace/Utils.swift b/stdlib/public/libexec/swift-backtrace/Utils.swift index 50231f5cc1205..b9b329607bb36 100644 --- a/stdlib/public/libexec/swift-backtrace/Utils.swift +++ b/stdlib/public/libexec/swift-backtrace/Utils.swift @@ -98,7 +98,7 @@ internal func recursiveRemoveContents(_ dir: String) throws { while let dp = readdir(dirp) { let name: String = withUnsafePointer(to: &dp.pointee.d_name) { -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) +#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) let len = Int(dp.pointee.d_namlen) #else let len = Int(strlen($0)) diff --git a/stdlib/public/libexec/swift-backtrace/main.swift b/stdlib/public/libexec/swift-backtrace/main.swift index ea05e26298150..c519d9f3b46bd 100644 --- a/stdlib/public/libexec/swift-backtrace/main.swift +++ b/stdlib/public/libexec/swift-backtrace/main.swift @@ -708,7 +708,7 @@ Generate a backtrace for the parent process. backtraceFormatter.writeCrashLog(now: formatISO8601(now)) } - #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) + #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) // On Darwin, if Developer Mode is turned off, or we can't tell if it's // on or not, disable interactivity var developerMode: Int32 = 0 @@ -772,7 +772,7 @@ Generate a backtrace for the parent process. } } - #if os(Linux) || os(macOS) || os(iOS) || os(watchOS) || os(tvOS) + #if os(Linux) || os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) static func setRawMode() -> termios { var oldAttrs = termios() tcgetattr(0, &oldAttrs)