Skip to content

Commit

Permalink
Merge pull request #1399 from asomers/accept4-android
Browse files Browse the repository at this point in the history
Remove accept4 on Android arm
  • Loading branch information
asomers authored Mar 5, 2021
2 parents 7e2ae52 + a3592a4 commit b728663
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

- Removed `sys::socket::accept4` from Android arm because libc removed it in
version 0.2.87.
([#1399](https://github.com/nix-rust/nix/pull/1399))

## [0.20.0] - 20 February 2021
### Added

Expand Down
9 changes: 8 additions & 1 deletion src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,14 @@ pub fn accept(sockfd: RawFd) -> Result<RawFd> {
/// Accept a connection on a socket
///
/// [Further reading](http://man7.org/linux/man-pages/man2/accept.2.html)
#[cfg(any(target_os = "android",
#[cfg(any(all(
target_os = "android",
any(
target_arch = "aarch64",
target_arch = "x86",
target_arch = "x86_64"
)
),
target_os = "freebsd",
target_os = "linux",
target_os = "openbsd"))]
Expand Down

0 comments on commit b728663

Please sign in to comment.