Browse Source

Fix build for non-Apple platforms.

Jon Shier 2 years ago
parent
commit
329b04f895
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Concurrency.swift

+ 1 - 1
Source/Concurrency.swift

@@ -761,7 +761,7 @@ extension DataStreamRequest {
     }
 }
 
-#if !(os(Linux) || os(Windows))
+#if canImport(Darwin) && !canImport(FoundationNetworking)
 // - MARK: WebSocketTask
 
 @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)