Skip to content

Commit

Permalink
port to qnx
Browse files Browse the repository at this point in the history
  • Loading branch information
dantunan committed May 3, 2024
1 parent 0b4afca commit 1887e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ mod notify {
use rustix::fd::{AsFd, AsRawFd, BorrowedFd, OwnedFd, RawFd};
use rustix::fs::{fcntl_getfl, fcntl_setfl, OFlags};
use rustix::io::{fcntl_getfd, fcntl_setfd, read, write, FdFlags};
#[cfg(not(target_os = "haiku"))]
#[cfg(not(any(target_os = "haiku", target_os = "nto")))]
use rustix::pipe::pipe_with;
use rustix::pipe::{pipe, PipeFlags};

Expand Down Expand Up @@ -665,10 +665,10 @@ mod notify {
io::Result::Ok((read_pipe, write_pipe))
};

#[cfg(not(target_os = "haiku"))]
#[cfg(not(any(target_os = "haiku", target_os = "nto")))]
let (read_pipe, write_pipe) = pipe_with(PipeFlags::CLOEXEC).or_else(fallback_pipe)?;

#[cfg(target_os = "haiku")]
#[cfg(any(target_os = "haiku", target_os = "nto"))]
let (read_pipe, write_pipe) = fallback_pipe(PipeFlags::CLOEXEC)?;

// Put the reading side into non-blocking mode.
Expand Down

0 comments on commit 1887e1f

Please sign in to comment.