native: Don't use timerfd on Android
It doesn't seem to exist.
This commit is contained in:
parent
7ea063ea0f
commit
e70ca23b8d
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -301,6 +301,7 @@ mod imp {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[cfg(target_os = "freebsd")]
|
||||
mod imp {
|
||||
use std::libc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue