mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Use the new Android overlay and Bionic module from Swift 6 (#2784)
Motivation: Get this repo building again for Android with the new overlay Modifications: - Import the new module or overlay wherever `Glibc` is used - Keep this repo building with Swift 5 by duplicating some declarations Result: All the same tests keep passing on my Android CI, finagolfin/swift-android-sdk#158
This commit is contained in:
1 parent
284125791a
commit
4feff3c2f6
33 files changed
+164
-43
No files matched your search
@@ -25,6 +25,8 @@ import Darwin
|
||||
import Glibc
|
||||
#elseif canImport(Musl)
|
||||
import Musl
|
||||
#elseif canImport(Bionic)
|
||||
import Bionic
|
||||
#endif
|
||||
|
||||
/// A file system which interacts with the local system. The file system uses a thread pool to
|
||||
@@ -1086,7 +1088,7 @@ extension FileSystem {
|
||||
location: .here()
|
||||
)
|
||||
}
|
||||
#elseif canImport(Glibc) || canImport(Musl)
|
||||
#elseif canImport(Glibc) || canImport(Musl) || canImport(Bionic)
|
||||
var offset = 0
|
||||
|
||||
while offset < sourceInfo.size {
|
||||
|
||||
Reference in new issue
Block a user