File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ internal func malloc_good_size(_ size: Int) -> Int {
6464import Glibc
6565#elseif canImport(Musl)
6666import Musl
67+ #elseif canImport(Android)
68+ import Android
6769#elseif canImport(WASILibc)
6870import WASILibc
6971#endif
Original file line number Diff line number Diff line change 1111internal func & ( left: UInt32 , right: mode_t ) -> mode_t {
1212 return mode_t ( left) & right
1313}
14- #elseif os(Android)
15- internal func & ( left: mode_t , right: Int32 ) -> mode_t {
16- return left & mode_t ( right)
17- }
1814#endif
1915
2016#if os(WASI)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import WinSDK
2525import WASILibc
2626#endif
2727
28- #if os (Android)
28+ #if canImport (Android)
2929import Android
3030#endif
3131
Original file line number Diff line number Diff line change 1212import WinSDK
1313#endif
1414
15- #if os (Android)
15+ #if canImport (Android)
1616 import Android
17- // Android Glibc differs a little with respect to the Linux Glibc.
17+ // Android Bionic differs a little with respect to the Linux Glibc.
1818
1919 // IFF_LOOPBACK is part of the enumeration net_device_flags, which needs to
2020 // convert to UInt32.
You can’t perform that action at this time.
0 commit comments