From 92e63f61cd5046547c30a812cda98d8a2c3b3361 Mon Sep 17 00:00:00 2001 From: Xavier L'Heureux Date: Tue, 17 Sep 2019 13:39:34 -0400 Subject: Remove warnings when compiling for Redox --- test/test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test.rs') diff --git a/test/test.rs b/test/test.rs index d48874fc..0bc8341d 100644 --- a/test/test.rs +++ b/test/test.rs @@ -3,7 +3,7 @@ extern crate bytes; extern crate caps; #[macro_use] extern crate cfg_if; -#[macro_use] +#[cfg_attr(not(target_os = "redox"), macro_use)] extern crate nix; #[macro_use] extern crate lazy_static; @@ -58,6 +58,7 @@ macro_rules! skip_if_jailed { } } +#[cfg(not(target_os = "redox"))] macro_rules! skip_if_not_root { ($name:expr) => { use nix::unistd::Uid; -- cgit v1.2.3