Skip to content

Commit 3f66dfb

Browse files
authored
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.
1 parent ccea4ee commit 3f66dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/System/MachPort.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
See https://swift.org/LICENSE.txt for license information
88
*/
99

10-
#if $MoveOnly && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
10+
#if swift(>=5.8) && $MoveOnly && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS))
1111

1212
import Darwin.Mach
1313

0 commit comments

Comments
 (0)