diff --git a/Sources/System/IORing/IOCompletion.swift b/Sources/System/IORing/IOCompletion.swift index 375abae..ce23444 100644 --- a/Sources/System/IORing/IOCompletion.swift +++ b/Sources/System/IORing/IOCompletion.swift @@ -1,4 +1,6 @@ -#if os(Linux) && compiler(>=6.2) +#if compiler(>=6.2) +#if os(Linux) + import CSystem public extension IORing { @@ -66,3 +68,4 @@ public extension IORing.Completion { } } #endif +#endif \ No newline at end of file diff --git a/Sources/System/IORing/IORequest.swift b/Sources/System/IORing/IORequest.swift index f7130f2..5ab5ac9 100644 --- a/Sources/System/IORing/IORequest.swift +++ b/Sources/System/IORing/IORequest.swift @@ -1,4 +1,6 @@ -#if os(Linux) && compiler(>=6.2) +#if compiler(>=6.2) +#if os(Linux) + import CSystem @usableFromInline @@ -492,3 +494,4 @@ extension IORing.Request { } } #endif +#endif \ No newline at end of file diff --git a/Sources/System/IORing/IORing.swift b/Sources/System/IORing/IORing.swift index 3b49d5c..c0fe005 100644 --- a/Sources/System/IORing/IORing.swift +++ b/Sources/System/IORing/IORing.swift @@ -1,4 +1,5 @@ -#if os(Linux) && compiler(>=6.2) +#if compiler(>=6.2) +#if os(Linux) import CSystem // needed for mmap @@ -882,3 +883,4 @@ extension IORing.RegisteredBuffer { } } #endif +#endif \ No newline at end of file diff --git a/Sources/System/IORing/RawIORequest.swift b/Sources/System/IORing/RawIORequest.swift index 2fc8a99..332cd91 100644 --- a/Sources/System/IORing/RawIORequest.swift +++ b/Sources/System/IORing/RawIORequest.swift @@ -1,4 +1,5 @@ -#if os(Linux) && compiler(>=6.2) +#if compiler(>=6.2) +#if os(Linux) import CSystem @@ -199,3 +200,4 @@ extension RawIORequest { } } #endif +#endif \ No newline at end of file diff --git a/Tests/SystemTests/IORequestTests.swift b/Tests/SystemTests/IORequestTests.swift index 53a0a82..9a80968 100644 --- a/Tests/SystemTests/IORequestTests.swift +++ b/Tests/SystemTests/IORequestTests.swift @@ -1,5 +1,5 @@ -#if os(Linux) #if compiler(>=6.2) +#if os(Linux) import XCTest diff --git a/Tests/SystemTests/IORingTests.swift b/Tests/SystemTests/IORingTests.swift index 7fb899f..3a2473c 100644 --- a/Tests/SystemTests/IORingTests.swift +++ b/Tests/SystemTests/IORingTests.swift @@ -1,5 +1,5 @@ -#if os(Linux) #if compiler(>=6.2) +#if os(Linux) import XCTest import CSystem //for eventfd