Expose sys::eventfd for target_os = "android"

Androids bionic supports eventfd. Extend the conditional compilation
check to include the target_os "android".

Fixes #1480
This commit is contained in:
Felix Obenhuber 2021-07-26 13:03:19 +02:00
parent 8519d9f8c8
commit 8ed34b72c8
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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",