Skip to content

Commit dd8109d

Browse files
committed
Foundation on Linux hasn’t adopted Sendable yet
swiftlang/swift-corelibs-foundation#4687
1 parent f90ac83 commit dd8109d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Sources/X509/OCSP/OCSPPolicy.swift

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414

1515
import SwiftASN1
1616
import Crypto
17-
import protocol Foundation.DataProtocol
18-
import struct Foundation.Date
19-
import typealias Foundation.TimeInterval
17+
#if canImport(Darwin)
18+
import Foundation
19+
#else
20+
// swift-corelibs-foundation hasn't marked anything Sendable yet https://github.com/apple/swift-corelibs-foundation/issues/4687
21+
@preconcurrency import Foundation
22+
#endif
23+
2024

2125
public protocol OCSPRequester: Sendable {
2226
/// Called with an OCSP Request.

0 commit comments

Comments
 (0)