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
2020import Musl
2121#elseif canImport(WASILibc)
2222import WASILibc
23+ #elseif canImport(Bionic)
24+ @_implementationOnly import CSystem
25+ import Bionic
2326#else
2427#error("Unsupported Platform")
2528#endif
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import Musl
2424#elseif canImport(WASILibc)
2525import CSystem
2626import WASILibc
27+ #elseif canImport(Android)
28+ import Android
2729#else
2830#error("Unsupported Platform")
2931#endif
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ import Glibc
2525import Musl
2626#elseif canImport(WASILibc)
2727import WASILibc
28+ #elseif canImport(Android)
29+ @_implementationOnly import CSystem
30+ import Android
2831#else
2932#error("Unsupported Platform")
3033#endif
@@ -65,6 +68,11 @@ internal var system_errno: CInt {
6568 get { WASILibc . errno }
6669 set { WASILibc . errno = newValue }
6770}
71+ #elseif canImport(Android)
72+ internal var system_errno : CInt {
73+ get { Android . errno }
74+ set { Android . errno = newValue }
75+ }
6876#endif
6977
7078// MARK: C stdlib decls
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import Musl
1717import WASILibc
1818#elseif os(Windows)
1919import ucrt
20+ #elseif canImport(Android)
21+ import Android
2022#else
2123#error("Unsupported Platform")
2224#endif
You can’t perform that action at this time.
0 commit comments