From f72287e1f68bccf76498db1547e3dd9755dec623 Mon Sep 17 00:00:00 2001 From: Nicolas Dusart Date: Thu, 20 Jul 2017 14:03:27 +0200 Subject: fix some tests for Android --- test/test_net.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_net.rs') 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] -- cgit v1.2.3