From 8ed34b72c8caf8aac10e5eafdaf7313b0b095905 Mon Sep 17 00:00:00 2001 From: Felix Obenhuber Date: Mon, 26 Jul 2021 13:03:19 +0200 Subject: Expose `sys::eventfd` for target_os = "android" Androids bionic supports eventfd. Extend the conditional compilation check to include the target_os "android". Fixes #1480 --- CHANGELOG.md | 4 ++++ src/sys/mod.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97268ef2..e665b2d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 43877a12..b43587b8 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -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", -- cgit v1.2.3