diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 2f35680179..dd0a3aff4a 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -135,6 +135,6 @@ pub mod wait; #[allow(missing_docs)] pub mod inotify; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] #[allow(missing_docs)] pub mod timerfd; diff --git a/test/sys/mod.rs b/test/sys/mod.rs index 4f5316ffa9..14b03784a0 100644 --- a/test/sys/mod.rs +++ b/test/sys/mod.rs @@ -41,5 +41,5 @@ mod test_pthread; target_os = "netbsd", target_os = "openbsd"))] mod test_ptrace; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "android", target_os = "linux"))] mod test_timerfd;