native: Don't use timerfd on Android

It doesn't seem to exist.
This commit is contained in:
Brian Anderson 2014-01-23 01:08:34 -08:00
parent 7ea063ea0f
commit e70ca23b8d
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -301,6 +301,7 @@ mod imp {
}
}
#[cfg(target_os = "android")]
#[cfg(target_os = "freebsd")]
mod imp {
use std::libc;