From fbdf04f6049ad718493ae851284fda66cad35ce7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 25 Jan 2018 07:32:55 -0800 Subject: [PATCH] More OSX fixes --- src/reactor/mod.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/reactor/mod.rs b/src/reactor/mod.rs index c250af3af..f175cd76f 100644 --- a/src/reactor/mod.rs +++ b/src/reactor/mod.rs @@ -840,14 +840,12 @@ mod platform { use mio::Ready; use mio::unix::UnixReady; - #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios", - target_os = "macos"))] + #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] pub fn all() -> Ready { hup() | UnixReady::aio().into() } - #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios", - target_os = "macos")))] + #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd")))] pub fn all() -> Ready { hup() } @@ -860,12 +858,12 @@ mod platform { const ERROR: usize = 1 << 3; const AIO: usize = 1 << 4; - #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios"))] + #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] fn is_aio(ready: &Ready) -> bool { ready.is_aio() } - #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios")))] + #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd")))] fn is_aio(_ready: &Ready) -> bool { false }