Skip to content

Commit 78f2301

Browse files
bors[bot]rtzoeller
andauthored
Merge #1567
1567: Recent versions of Android support EPOLLEXCLUSIVE r=rtzoeller a=rtzoeller [Corresponding libc change](rust-lang/libc@36be4cd). Enable the epoll tests on Android, because they are passing. Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
2 parents 3e952d3 + e5af884 commit 78f2301

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1111
- Added fine-grained features flags. Most Nix functionality can now be
1212
conditionally enabled. By default, all features are enabled.
1313
(#[1611](https://github.com/nix-rust/nix/pull/1611))
14+
- Added `EPOLLEXCLUSIVE` on Android.
15+
(#[1567](https://github.com/nix-rust/nix/pull/1567))
1416

1517
### Changed
1618
### Fixed

src/sys/epoll.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ libc_bitflags!(
1818
EPOLLERR;
1919
EPOLLHUP;
2020
EPOLLRDHUP;
21-
#[cfg(target_os = "linux")] // Added in 4.5; not in Android.
22-
#[cfg_attr(docsrs, doc(cfg(all())))]
2321
EPOLLEXCLUSIVE;
2422
#[cfg(not(target_arch = "mips"))]
2523
EPOLLWAKEUP;

test/sys/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mod test_ioctl;
3030
mod test_wait;
3131
mod test_uio;
3232

33-
#[cfg(target_os = "linux")]
33+
#[cfg(any(target_os = "android", target_os = "linux"))]
3434
mod test_epoll;
3535
#[cfg(target_os = "linux")]
3636
mod test_inotify;

0 commit comments

Comments
 (0)