fix conditional compilation for xdp only build

This commit is contained in:
Ferdinand Schober
2024-11-07 12:21:38 +01:00
parent ef92bd69d9
commit 1433a3021b

View File

@@ -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;