Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions Sources/GRPCInProcessTransport/Syscalls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down