From e1096ae86cfaec55660d87ae1c4beb03b1ac0001 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Tue, 30 Jul 2024 11:11:45 +0200 Subject: [PATCH] fix macos build error --- input-emulation/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input-emulation/src/error.rs b/input-emulation/src/error.rs index c69f55ad..e2bd824e 100644 --- a/input-emulation/src/error.rs +++ b/input-emulation/src/error.rs @@ -88,7 +88,7 @@ pub enum EmulationCreationError { impl EmulationCreationError { /// request was intentionally denied by the user pub(crate) fn cancelled_by_user(&self) -> bool { - #[cfg(feature = "libei")] + #[cfg(all(unix, feature = "libei", not(target_os = "macos")))] if matches!( self, EmulationCreationError::Libei(LibeiEmulationCreationError::Ashpd(Response( @@ -97,7 +97,7 @@ impl EmulationCreationError { ) { return true; } - #[cfg(feature = "xdg_desktop_portal")] + #[cfg(all(unix, feature = "xdg_desktop_portal", not(target_os = "macos")))] if matches!( self, EmulationCreationError::Xdp(XdpEmulationCreationError::Ashpd(Response(