File tree 2 files changed +7
-0
lines changed
GRPCCore/Call/Client/Internal
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
#if canImport(Darwin)
17
17
public import Darwin // should be @usableFromInline
18
+ #elseif canImport(Android)
19
+ public import Android // should be @usableFromInline
18
20
#elseif canImport(Glibc)
19
21
public import Glibc // should be @usableFromInline
20
22
#elseif canImport(Musl)
Original file line number Diff line number Diff line change 16
16
17
17
#if canImport(Darwin)
18
18
private import Darwin
19
+ #elseif canImport(Android)
20
+ private import Android // should be @usableFromInline
19
21
#elseif canImport(Glibc)
20
22
private import Glibc // should be @usableFromInline
21
23
#elseif canImport(Musl)
@@ -29,6 +31,9 @@ enum System {
29
31
#if canImport(Darwin)
30
32
let pid = Darwin . getpid ( )
31
33
return Int ( pid)
34
+ #elseif canImport(Android)
35
+ let pid = Android . getpid ( )
36
+ return Int ( pid)
32
37
#elseif canImport(Glibc)
33
38
let pid = Glibc . getpid ( )
34
39
return Int ( pid)
You can’t perform that action at this time.
0 commit comments