mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 06:03:16 +00:00
native: Don't use timerfd on Android
It doesn't seem to exist.
This commit is contained in:
parent
7ea063ea0f
commit
e70ca23b8d
@ -48,11 +48,11 @@ pub mod net;
|
|||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
#[cfg(target_os = "freebsd")]
|
#[cfg(target_os = "freebsd")]
|
||||||
|
#[cfg(target_os = "android")]
|
||||||
#[path = "timer_other.rs"]
|
#[path = "timer_other.rs"]
|
||||||
pub mod timer;
|
pub mod timer;
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[path = "timer_timerfd.rs"]
|
#[path = "timer_timerfd.rs"]
|
||||||
pub mod timer;
|
pub mod timer;
|
||||||
|
|
||||||
|
@ -301,6 +301,7 @@ mod imp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "android")]
|
||||||
#[cfg(target_os = "freebsd")]
|
#[cfg(target_os = "freebsd")]
|
||||||
mod imp {
|
mod imp {
|
||||||
use std::libc;
|
use std::libc;
|
||||||
|
Loading…
Reference in New Issue
Block a user