Skip to content

Commit 329c5f5

Browse files
committed
Conditionalize IORing on compiler >= 6.2
1 parent 6dd0eba commit 329c5f5

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

Sources/System/IOCompletion.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#if os(Linux)
2+
#if compiler(>=6.2)
23
import CSystem
34

45
public extension IORing {
@@ -66,3 +67,4 @@ public extension IORing.Completion {
6667
}
6768
}
6869
#endif
70+
#endif

Sources/System/IORequest.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#if os(Linux)
2+
#if compiler(>=6.2)
23
import CSystem
34

45
@usableFromInline
@@ -466,3 +467,4 @@ extension IORing.Request {
466467
}
467468
}
468469
#endif
470+
#endif

Sources/System/IORing.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#if os(Linux)
2+
#if compiler(>=6.2)
3+
24
import CSystem
35
// needed for mmap
46
#if canImport(Glibc)
@@ -825,3 +827,4 @@ extension IORing.RegisteredBuffer {
825827
}
826828
}
827829
#endif
830+
#endif

Sources/System/RawIORequest.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#if os(Linux)
2+
#if compiler(>=6.2)
3+
24
import CSystem
35

46
@usableFromInline
@@ -198,3 +200,4 @@ extension RawIORequest {
198200
}
199201
}
200202
#endif
203+
#endif

Tests/SystemTests/IORequestTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#if os(Linux)
2+
#if compiler(>=6.2)
3+
24
import XCTest
35

46
#if SYSTEM_PACKAGE
@@ -29,3 +31,4 @@ final class IORequestTests: XCTestCase {
2931
}
3032
}
3133
#endif
34+
#endif

Tests/SystemTests/IORingTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#if os(Linux)
2+
#if compiler(>=6.2)
3+
24
import XCTest
35
import CSystem //for eventfd
46

@@ -108,3 +110,4 @@ final class IORingTests: XCTestCase {
108110
}
109111
}
110112
#endif
113+
#endif

0 commit comments

Comments
 (0)