Skip to content

Commit e70ca23

Browse files
committed
native: Don't use timerfd on Android
It doesn't seem to exist.
1 parent 7ea063e commit e70ca23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/libnative/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ pub mod net;
4848

4949
#[cfg(target_os = "macos")]
5050
#[cfg(target_os = "freebsd")]
51+
#[cfg(target_os = "android")]
5152
#[path = "timer_other.rs"]
5253
pub mod timer;
5354

5455
#[cfg(target_os = "linux")]
55-
#[cfg(target_os = "android")]
5656
#[path = "timer_timerfd.rs"]
5757
pub mod timer;
5858

src/libnative/io/timer_other.rs

+1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ mod imp {
301301
}
302302
}
303303

304+
#[cfg(target_os = "android")]
304305
#[cfg(target_os = "freebsd")]
305306
mod imp {
306307
use std::libc;

0 commit comments

Comments
 (0)