diff options
Diffstat (limited to 'test/test_net.rs')
-rw-r--r-- | test/test_net.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_net.rs b/test/test_net.rs index acdaf47a..24bd411a 100644 --- a/test/test_net.rs +++ b/test/test_net.rs @@ -1,9 +1,9 @@ use nix::net::if_::*; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] const LOOPBACK: &'static [u8] = b"lo"; -#[cfg(not(target_os = "linux"))] +#[cfg(not(any(target_os = "android", target_os = "linux")))] const LOOPBACK: &'static [u8] = b"lo0"; #[test] |