We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66d015 commit 2e0c72cCopy full SHA for 2e0c72c
Sources/ArgumentParser/Utilities/Platform.swift
@@ -29,6 +29,8 @@ import Darwin
29
import CRT
30
#elseif canImport(WASILibc)
31
import WASILibc
32
+#elseif canImport(Android)
33
+import Android
34
#endif
35
36
enum Platform {}
@@ -98,6 +100,8 @@ extension Platform {
98
100
ucrt._exit(code)
99
101
102
WASILibc.exit(code)
103
104
+ Android.exit(code)
105
106
}
107
@@ -120,7 +124,7 @@ extension Platform {
120
124
121
125
// MARK: Terminal size
122
126
123
-#if canImport(Glibc)
127
+#if canImport(Glibc) || canImport(Android)
128
func ioctl(_ a: Int32, _ b: Int32, _ p: UnsafeMutableRawPointer) -> Int32 {
129
ioctl(CInt(a), UInt(b), p)
130
0 commit comments