Skip to content

Commit 2a31ac1

Browse files
Allow Android to use timerfd
Co-authored-by: zachoverflow <[email protected]>
1 parent 39c6366 commit 2a31ac1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sys/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ pub mod wait;
135135
#[allow(missing_docs)]
136136
pub mod inotify;
137137

138-
#[cfg(target_os = "linux")]
138+
#[cfg(any(target_os = "android", target_os = "linux"))]
139139
#[allow(missing_docs)]
140140
pub mod timerfd;

test/sys/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ mod test_pthread;
4141
target_os = "netbsd",
4242
target_os = "openbsd"))]
4343
mod test_ptrace;
44-
#[cfg(target_os = "linux")]
44+
#[cfg(any(target_os = "android", target_os = "linux"))]
4545
mod test_timerfd;

0 commit comments

Comments
 (0)