mirror of
https://github.com/apple/swift-system
synced 2026-11-27 05:04:27 +00:00
Merge branch 'david/ioring' of https://github.com/apple/swift-system into david/ioring
This commit is contained in:
commit
e580c13ca8
3 files changed
+10
-1
No files matched your search
@@ -1,6 +1,11 @@
|
||||
#if os(Linux)
|
||||
import CSystem
|
||||
import Glibc // needed for mmap
|
||||
// needed for mmap
|
||||
#if canImport(Glibc)
|
||||
import Glibc
|
||||
#elseif canImport(Musl)
|
||||
import Musl
|
||||
#endif
|
||||
import Synchronization
|
||||
|
||||
extension UnsafeMutableRawPointer {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#if os(Linux)
|
||||
import XCTest
|
||||
|
||||
#if SYSTEM_PACKAGE
|
||||
@@ -27,3 +28,4 @@ final class IORequestTests: XCTestCase {
|
||||
XCTAssertEqual(sourceBytes, .init(repeating: 0, count: 64))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,3 +1,4 @@
|
||||
#if os(Linux)
|
||||
import XCTest
|
||||
import CSystem //for eventfd
|
||||
|
||||
@@ -98,3 +99,4 @@ final class IORingTests: XCTestCase {
|
||||
rawBuffer.deallocate()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user