diff --git a/Sources/GRPCCore/Call/Client/Internal/RetryDelaySequence.swift b/Sources/GRPCCore/Call/Client/Internal/RetryDelaySequence.swift index 46b3e197d..4f87682b2 100644 --- a/Sources/GRPCCore/Call/Client/Internal/RetryDelaySequence.swift +++ b/Sources/GRPCCore/Call/Client/Internal/RetryDelaySequence.swift @@ -15,6 +15,8 @@ */ #if canImport(Darwin) public import Darwin // should be @usableFromInline +#elseif canImport(Android) +public import Android // should be @usableFromInline #elseif canImport(Glibc) public import Glibc // should be @usableFromInline #elseif canImport(Musl) diff --git a/Sources/GRPCInProcessTransport/Syscalls.swift b/Sources/GRPCInProcessTransport/Syscalls.swift index 538eb3a78..c96becbd5 100644 --- a/Sources/GRPCInProcessTransport/Syscalls.swift +++ b/Sources/GRPCInProcessTransport/Syscalls.swift @@ -16,6 +16,8 @@ #if canImport(Darwin) private import Darwin +#elseif canImport(Android) +private import Android // should be @usableFromInline #elseif canImport(Glibc) private import Glibc // should be @usableFromInline #elseif canImport(Musl) @@ -29,6 +31,9 @@ enum System { #if canImport(Darwin) let pid = Darwin.getpid() return Int(pid) + #elseif canImport(Android) + let pid = Android.getpid() + return Int(pid) #elseif canImport(Glibc) let pid = Glibc.getpid() return Int(pid)