Update Array+FileSystem.swift to add visionOS (#3220)

Fix visionOS builds and tests

### Motivation:

visionOS builds and tests were failing because of missing cases in
availability guards.

### Modifications:

Spell guards in terms of Darwin where appropriate, add visionOS

### Result:

Example run of this working in CI
https://github.com/apple/swift-nio/actions/runs/14876166161/job/41773757638?pr=3220
This commit is contained in:
Rick Newton-Rogers authored and GitHub committed 2025-05-07 13:22:23 +00:00
1 parent afa7d4f57d
commit 14dcafc6ec
6 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
#if canImport(Darwin) || os(Linux) || os(Android)
import NIOCore
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)