diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os/mod.rs | 2 | ||||
-rw-r--r-- | src/os/shared.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/os/mod.rs b/src/os/mod.rs index 7770de9..434c9d7 100644 --- a/src/os/mod.rs +++ b/src/os/mod.rs @@ -1,4 +1,4 @@ -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] mod linux; #[cfg(any(target_os = "macos", target_os = "freebsd"))] diff --git a/src/os/shared.rs b/src/os/shared.rs index fbe3559..bb0e532 100644 --- a/src/os/shared.rs +++ b/src/os/shared.rs @@ -13,7 +13,7 @@ use tokio::runtime::Runtime; use crate::{network::dns, os::errors::GetInterfaceError, OsInputOutput}; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] use crate::os::linux::get_open_sockets; #[cfg(any(target_os = "macos", target_os = "freebsd"))] use crate::os::lsof::get_open_sockets; @@ -220,7 +220,7 @@ fn eperm_message() -> &'static str { } #[inline] -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] fn eperm_message() -> &'static str { r#" Insufficient permissions to listen on network interface(s). You can work around |