From 6674048489742422bc25e7212ac4f1d568c3fe92 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 22 Apr 2026 18:40:31 -0700 Subject: [PATCH] Fix apple platforms other than macOS --- src/sources/ping/pipe.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/sources/ping/pipe.rs b/src/sources/ping/pipe.rs index 3cd7eac2..a50bc40b 100644 --- a/src/sources/ping/pipe.rs +++ b/src/sources/ping/pipe.rs @@ -13,7 +13,13 @@ use crate::{ generic::Generic, EventSource, Interest, Mode, Poll, PostAction, Readiness, Token, TokenFactory, }; -#[cfg(target_os = "macos")] +#[cfg(any( + target_os = "macos", + target_os = "ios", + target_os = "tvos", + target_os = "visionos", + target_os = "watchos" +))] #[inline] fn make_ends() -> std::io::Result<(OwnedFd, OwnedFd)> { use rustix::fs::{fcntl_getfl, fcntl_setfl, OFlags}; @@ -29,7 +35,13 @@ fn make_ends() -> std::io::Result<(OwnedFd, OwnedFd)> { Ok((read, write)) } -#[cfg(not(target_os = "macos"))] +#[cfg(not(any( + target_os = "macos", + target_os = "ios", + target_os = "tvos", + target_os = "visionos", + target_os = "watchos" +)))] #[inline] fn make_ends() -> std::io::Result<(OwnedFd, OwnedFd)> { use rustix::pipe::{pipe_with, PipeFlags};