mirror of
https://gitee.com/openharmony/third_party_rust_nix
synced 2025-02-20 16:43:34 +00:00
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:
parent
8519d9f8c8
commit
8ed34b72c8
@ -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
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user