Skip to content

Commit ac3aeb7

Browse files
0xTimgwynne
andauthored
Fix a couple of import issues (vapor#3390)
* Fix an error on some versions of Linux with imports * Fix Sendable issue on old macOS SDK * Try just NIOCore * Update Sources/Vapor/Security/OTP.swift Co-authored-by: Gwynne Raskind <[email protected]> --------- Co-authored-by: Gwynne Raskind <[email protected]>
1 parent c84ffd3 commit ac3aeb7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/Vapor/Security/OTP.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
2-
#if canImport(Darwin)
2+
#if canImport(Darwin) && compiler(>=6.1)
33
import Crypto
44
#else
55
@preconcurrency import Crypto

Sources/Vapor/Utilities/String+IsIPAddress.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import NIOCore
23
#if canImport(Android)
34
import Android
45
#endif

0 commit comments

Comments
 (0)