From e70ca23b8d690ac60ec31bbad8807c607e7fba05 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 23 Jan 2014 01:08:34 -0800 Subject: [PATCH] native: Don't use timerfd on Android It doesn't seem to exist. --- src/libnative/io/mod.rs | 2 +- src/libnative/io/timer_other.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libnative/io/mod.rs b/src/libnative/io/mod.rs index f3aca7820a505..79436bb799965 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 24ffd7a414778..4a62a400c8da9 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;