MachPort: fix build issues with Swift 5.7

It seems that `#if $MoveOnly` check has no effect on Swift 5.7, so we should check whether Swift 5.8 or later are available first.

Resolves #117.
This commit is contained in:
Max Desiatov authored and GitHub committed 2023-01-05 10:58:04 +00:00
1 parent ccea4eed1a
commit 3f66dfbaf8
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@
See https://swift.org/LICENSE.txt for license information
*/
#if $MoveOnly && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
#if swift(>=5.8) && $MoveOnly && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
import Darwin.Mach