diff options
author | Nicolas Dusart <dusartnicolas@gmail.com> | 2017-07-20 14:03:27 +0200 |
---|---|---|
committer | Nicolas Dusart <dusartnicolas@gmail.com> | 2017-07-20 16:44:47 +0200 |
commit | f72287e1f68bccf76498db1547e3dd9755dec623 (patch) | |
tree | 5e847aee66c323b0e6defe189c126f4703b61dfa /test/test_net.rs | |
parent | 07e6c2f5c2d2a95fcfcd509556c4d1441a91adfb (diff) | |
download | nix-f72287e1f68bccf76498db1547e3dd9755dec623.zip |
fix some tests for Android
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] |