File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Sources/ArgumentParser/Utilities Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ import Darwin
26
26
@preconcurrency import CRT
27
27
#elseif canImport(WASILibc)
28
28
@preconcurrency import WASILibc
29
+ #elseif canImport(Android)
30
+ @preconcurrency import Android
29
31
#endif
30
32
31
33
enum Platform { }
@@ -95,6 +97,8 @@ extension Platform {
95
97
ucrt. _exit ( code)
96
98
#elseif canImport(WASILibc)
97
99
WASILibc . exit ( code)
100
+ #elseif canImport(Android)
101
+ Android . exit ( code)
98
102
#endif
99
103
}
100
104
}
@@ -117,7 +121,7 @@ extension Platform {
117
121
118
122
// MARK: Terminal size
119
123
120
- #if canImport(Glibc)
124
+ #if canImport(Glibc) || canImport(Android)
121
125
func ioctl( _ a: Int32 , _ b: Int32 , _ p: UnsafeMutableRawPointer ) -> Int32 {
122
126
ioctl ( CInt ( a) , UInt ( b) , p)
123
127
}
You can’t perform that action at this time.
0 commit comments