From ec4f74ea953986d096f171f2e5ea11903507b531 Mon Sep 17 00:00:00 2001 From: Curtis D'Alves Date: Mon, 23 Mar 2026 16:59:07 -0400 Subject: [PATCH] [aix] replace pipe_with calls on AIX same as haiku,nto --- src/poll.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/poll.rs b/src/poll.rs index 1ba382a..1712caf 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -662,7 +662,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(any(target_os = "haiku", target_os = "nto")))] + #[cfg(not(any(target_os = "haiku", target_os = "nto", target_os = "aix")))] use rustix::pipe::pipe_with; use rustix::pipe::{pipe, PipeFlags}; @@ -692,10 +692,10 @@ mod notify { io::Result::Ok((read_pipe, write_pipe)) }; - #[cfg(not(any(target_os = "haiku", target_os = "nto")))] + #[cfg(not(any(target_os = "haiku", target_os = "nto", target_os = "aix")))] let (read_pipe, write_pipe) = pipe_with(PipeFlags::CLOEXEC).or_else(fallback_pipe)?; - #[cfg(any(target_os = "haiku", target_os = "nto"))] + #[cfg(any(target_os = "haiku", target_os = "nto", target_os = "aix"))] let (read_pipe, write_pipe) = fallback_pipe(PipeFlags::CLOEXEC)?; // Put the reading side into non-blocking mode.