diff --git a/examples/wait-signal.rs b/examples/wait-signal.rs index 92cb55b..3692447 100644 --- a/examples/wait-signal.rs +++ b/examples/wait-signal.rs @@ -1,9 +1,6 @@ #[cfg(all( any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", @@ -43,10 +40,7 @@ mod example { #[cfg(all( any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", @@ -60,10 +54,7 @@ fn main() { #[cfg(not(all( any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", diff --git a/src/kqueue.rs b/src/kqueue.rs index 30bdaf9..76d2811 100644 --- a/src/kqueue.rs +++ b/src/kqueue.rs @@ -397,10 +397,7 @@ pub(crate) fn mode_to_flags(mode: PollMode) -> kqueue::EventFlags { #[cfg(any( target_os = "freebsd", target_os = "dragonfly", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", ))] mod notify { use super::Poller; @@ -480,10 +477,7 @@ mod notify { #[cfg(not(any( target_os = "freebsd", target_os = "dragonfly", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", )))] mod notify { use super::Poller; diff --git a/src/lib.rs b/src/lib.rs index da77a01..a13e227 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,10 +94,7 @@ cfg_if! { mod port; use port as sys; } else if #[cfg(any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", @@ -968,10 +965,7 @@ impl fmt::Debug for Events { target_os = "android", target_os = "illumos", target_os = "solaris", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", @@ -986,10 +980,7 @@ impl fmt::Debug for Events { target_os = "android", target_os = "illumos", target_os = "solaris", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", diff --git a/src/os.rs b/src/os.rs index 1d58bfa..35f5d1a 100644 --- a/src/os.rs +++ b/src/os.rs @@ -2,10 +2,7 @@ #[cfg(all( any( - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", diff --git a/tests/other_modes.rs b/tests/other_modes.rs index 407e42b..c3cf79f 100644 --- a/tests/other_modes.rs +++ b/tests/other_modes.rs @@ -113,10 +113,7 @@ fn edge_triggered() { any( target_os = "linux", target_os = "android", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", @@ -209,10 +206,7 @@ fn edge_oneshot_triggered() { any( target_os = "linux", target_os = "android", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", diff --git a/tests/precision.rs b/tests/precision.rs index 1776fa8..c87709d 100644 --- a/tests/precision.rs +++ b/tests/precision.rs @@ -26,10 +26,7 @@ fn below_ms() -> io::Result<()> { any( target_os = "linux", target_os = "android", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", ), not(polling_test_poll_backend) @@ -64,10 +61,7 @@ fn above_ms() -> io::Result<()> { target_os = "android", target_os = "illumos", target_os = "solaris", - target_os = "macos", - target_os = "ios", - target_os = "tvos", - target_os = "watchos", + target_vendor = "apple", target_os = "freebsd", ), not(polling_test_poll_backend)