about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/mod.rs2
-rw-r--r--src/libnative/io/timer_other.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libnative/io/mod.rs b/src/libnative/io/mod.rs
index f3aca7820a5..79436bb7999 100644
--- a/src/libnative/io/mod.rs
+++ b/src/libnative/io/mod.rs
@@ -48,11 +48,11 @@ pub mod net;
 
 #[cfg(target_os = "macos")]
 #[cfg(target_os = "freebsd")]
+#[cfg(target_os = "android")]
 #[path = "timer_other.rs"]
 pub mod timer;
 
 #[cfg(target_os = "linux")]
-#[cfg(target_os = "android")]
 #[path = "timer_timerfd.rs"]
 pub mod timer;
 
diff --git a/src/libnative/io/timer_other.rs b/src/libnative/io/timer_other.rs
index 24ffd7a4147..4a62a400c8d 100644
--- a/src/libnative/io/timer_other.rs
+++ b/src/libnative/io/timer_other.rs
@@ -301,6 +301,7 @@ mod imp {
     }
 }
 
+#[cfg(target_os = "android")]
 #[cfg(target_os = "freebsd")]
 mod imp {
     use std::libc;