From e9d600557b3b958c3bb436acb3efe20b5445ce64 Mon Sep 17 00:00:00 2001 From: Justin Tracey Date: Thu, 14 Apr 2022 20:13:49 -0400 Subject: [PATCH] add Android as supported platform --- src/sys/linux_macos/mod.rs | 4 ++-- src/sys/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sys/linux_macos/mod.rs b/src/sys/linux_macos/mod.rs index 85f1b5d73..c0e86fe31 100644 --- a/src/sys/linux_macos/mod.rs +++ b/src/sys/linux_macos/mod.rs @@ -1,7 +1,7 @@ -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] mod linux; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] use self::linux::*; #[cfg(target_os = "macos")] diff --git a/src/sys/mod.rs b/src/sys/mod.rs index c3257c710..4724826b5 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -35,6 +35,6 @@ macro_rules! platforms { } platforms! { - "linux"; "macos" => linux_macos, + "android"; "linux"; "macos" => linux_macos, "freebsd"; "netbsd" => bsd }