File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ import Glibc
20
20
import Musl
21
21
#elseif canImport(WASILibc)
22
22
import WASILibc
23
+ #elseif canImport(Android)
24
+ @_implementationOnly import CSystem
25
+ import Android
23
26
#else
24
27
#error("Unsupported Platform")
25
28
#endif
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import Musl
24
24
#elseif canImport(WASILibc)
25
25
import CSystem
26
26
import WASILibc
27
+ #elseif canImport(Android)
28
+ import Android
27
29
#else
28
30
#error("Unsupported Platform")
29
31
#endif
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ import Glibc
25
25
import Musl
26
26
#elseif canImport(WASILibc)
27
27
import WASILibc
28
+ #elseif canImport(Android)
29
+ @_implementationOnly import CSystem
30
+ import Android
28
31
#else
29
32
#error("Unsupported Platform")
30
33
#endif
@@ -65,6 +68,11 @@ internal var system_errno: CInt {
65
68
get { WASILibc . errno }
66
69
set { WASILibc . errno = newValue }
67
70
}
71
+ #elseif canImport(Android)
72
+ internal var system_errno : CInt {
73
+ get { Android . errno }
74
+ set { Android . errno = newValue }
75
+ }
68
76
#endif
69
77
70
78
// MARK: C stdlib decls
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import Musl
17
17
import WASILibc
18
18
#elseif os(Windows)
19
19
import ucrt
20
+ #elseif canImport(Android)
21
+ import Android
20
22
#else
21
23
#error("Unsupported Platform")
22
24
#endif
You can’t perform that action at this time.
0 commit comments