diff --git a/Cargo.toml b/Cargo.toml index 5dc3669..a464242 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,5 +13,5 @@ keywords = ["current", "process", "executable", "dylib", "dll"] [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.9", features = ["errhandlingapi", "libloaderapi", "minwindef", "winerror" ] } -[target.'cfg(any(target_os="linux", target_os="freebsd", target_os="dragonfly", target_os="netbsd", target_os="macos", target_os="illumos"))'.dependencies] +[target.'cfg(any(target_os="linux", target_os="freebsd", target_os="dragonfly", target_os="netbsd", target_os="macos", target_os="illumos", target_os="android"))'.dependencies] libc = "0.2.81" diff --git a/src/lib.rs b/src/lib.rs index 1e5d091..bcea994 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,11 +21,12 @@ //! * macOS //! * Windows //! * illumos +//! * Android use std::path::PathBuf; -#[cfg(any(target_os = "linux", target_os = "illumos"))] +#[cfg(any(target_os = "linux", target_os = "illumos", target_os = "android"))] mod linux; -#[cfg(any(target_os = "linux", target_os = "illumos"))] +#[cfg(any(target_os = "linux", target_os = "illumos", target_os = "android"))] use linux as os; #[cfg(target_os = "macos")] @@ -44,7 +45,8 @@ use bsd as os; target_os = "dragonfly", target_os = "netbsd", target_os = "macos", - target_os = "illumos" + target_os = "illumos", + target_os = "android" ))] mod nix;