Skip to content

Commit

Permalink
Add support android for lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ifurther authored Sep 29, 2022
1 parent 8a6b1a4 commit b525b88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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;

Expand Down

0 comments on commit b525b88

Please sign in to comment.