Skip to content

Commit

Permalink
Expose sys::eventfd for target_os = "android"
Browse files Browse the repository at this point in the history
Androids bionic supports eventfd. Extend the conditional compilation
check to include the target_os "android".

Fixes #1480
  • Loading branch information
flxo committed Jul 27, 2021
1 parent 8519d9f commit 8ed34b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ This project adheres to [Semantic Versioning](https://semver.org/).
64-bit Android, change conditional compilation to include the field in
64-bit Android builds
(#[1471](https://github.com/nix-rust/nix/pull/1471))
- `eventfd`s are supported on Android, change conditional compilation to
include `sys::eventfd::eventfd` and `sys::eventfd::EfdFlags`for Android
builds.
(#[1481](https://github.com/nix-rust/nix/pull/1481))

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod epoll;
target_os = "openbsd"))]
pub mod event;

#[cfg(target_os = "linux")]
#[cfg(any(target_os = "android", target_os = "linux"))]
pub mod eventfd;

#[cfg(any(target_os = "android",
Expand Down

0 comments on commit 8ed34b7

Please sign in to comment.