From 1433a3021b35466d196d880f215e2e7b129a6415 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Thu, 7 Nov 2024 12:21:38 +0100 Subject: [PATCH] fix conditional compilation for xdp only build --- input-emulation/src/error.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/input-emulation/src/error.rs b/input-emulation/src/error.rs index 1efa3f8..644f864 100644 --- a/input-emulation/src/error.rs +++ b/input-emulation/src/error.rs @@ -6,7 +6,11 @@ pub enum InputEmulationError { Emulate(#[from] EmulationError), } -#[cfg(all(unix, feature = "libei", not(target_os = "macos")))] +#[cfg(all( + unix, + any(feature = "xdg_desktop_portal", feature = "libei"), + not(target_os = "macos") +))] use ashpd::{desktop::ResponseError, Error::Response}; use std::io; use thiserror::Error;