diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ifaddrs.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ifaddrs.rs b/src/ifaddrs.rs index 61d36ff4..c9790773 100644 --- a/src/ifaddrs.rs +++ b/src/ifaddrs.rs @@ -32,7 +32,7 @@ pub struct InterfaceAddress { } cfg_if! { - if #[cfg(any(target_os = "emscripten", target_os = "fuchsia", target_os = "linux"))] { + if #[cfg(any(target_os = "android", target_os = "emscripten", target_os = "fuchsia", target_os = "linux"))] { fn get_ifu_from_sockaddr(info: &libc::ifaddrs) -> *const libc::sockaddr { info.ifa_ifu } @@ -35,7 +35,8 @@ pub mod errno; pub mod features; pub mod fcntl; #[deny(missing_docs)] -#[cfg(any(target_os = "dragonfly", +#[cfg(any(target_os = "android", + target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "linux", |