Import the Android module if available, since glibc and musl are unavailable on Android (#198)

I don't expect us to run CI against this until that's more formally
supported, but this would greatly help adoption of server-focused
packages on Android
This commit is contained in:
Joannis Orlandos authored and GitHub committed 2025-02-17 07:52:11 +00:00
1 parent c641ece1cc
commit e2b442cc73
4 files changed
+9

No files matched your search

+2
View File
@@ -35,6 +35,8 @@ import WinSDK
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif
#if os(Windows)
+2
View File
@@ -18,6 +18,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif
import Dispatch
@@ -21,6 +21,9 @@ import Glibc
#elseif canImport(Musl)
@preconcurrency import Dispatch
import Musl
#elseif canImport(Android)
@preconcurrency import Dispatch
import Android
#endif
import ConcurrencyHelpers
@@ -20,6 +20,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif
final class UnixSignalTests: XCTestCase {