diff options
author | Alan Somers <asomers@gmail.com> | 2021-03-04 19:39:27 -0700 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-03-04 19:40:19 -0700 |
commit | a3592a4deb0a3a532bf4bfbf19ec2c018ede4267 (patch) | |
tree | b5eed506e147cafe2b11a38999a10254b92cb7dc /src/sys/socket/mod.rs | |
parent | 7e2ae524cc6e4d6cfd0b363430569687cee65ad8 (diff) | |
download | nix-a3592a4deb0a3a532bf4bfbf19ec2c018ede4267.zip |
Remove accept4 on Android arm
libc removed it in version 0.2.87.
https://github.com/rust-lang/libc/pull/2079
Diffstat (limited to 'src/sys/socket/mod.rs')
-rw-r--r-- | src/sys/socket/mod.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 11ed329f..4db7ac6e 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -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"))] |