Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/platform/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ extern "C" fn os_handler(_: nix::libc::c_int) {
}
}

// pipe2(2) is not available on macOS, iOS, AIX or Haiku, so we need to use pipe(2) and fcntl(2)
// pipe2(2) is not available on macOS, iOS, AIX, Haiku, etc., so we need to use pipe(2) and fcntl(2)
#[inline]
#[cfg(any(
target_os = "ios",
target_os = "macos",
target_vendor = "apple",
target_os = "haiku",
target_os = "aix",
target_os = "nto",
Expand Down Expand Up @@ -70,8 +69,7 @@ fn pipe2(flags: nix::fcntl::OFlag) -> nix::Result<(RawFd, RawFd)> {

#[inline]
#[cfg(not(any(
target_os = "ios",
target_os = "macos",
target_vendor = "apple",
target_os = "haiku",
target_os = "aix",
target_os = "nto",
Expand Down