Skip to content

Commit

Permalink
Merge pull request #224 from powturns/master
Browse files Browse the repository at this point in the history
Fix android build
  • Loading branch information
wllenyj authored May 6, 2024
2 parents 9d7f90f + b5cbdcc commit 6cf4d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sync/sys/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl PipeListener {
}

fn new_monitor_fd() -> Result<(i32, i32)> {
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
let fds = pipe2(nix::fcntl::OFlag::O_CLOEXEC)?;


Expand Down Expand Up @@ -131,7 +131,7 @@ impl PipeListener {
return Err(io::Error::new(io::ErrorKind::Other, "listener shutdown for quit flag"));
}

#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "android"))]
let fd = match accept4(self.fd, SockFlag::SOCK_CLOEXEC) {
Ok(fd) => fd,
Err(e) => {
Expand Down

0 comments on commit 6cf4d5b

Please sign in to comment.