From ad68bc53fdb769bcd479486d9563206c461dbf44 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Fri, 17 Feb 2023 13:41:06 +0100 Subject: [PATCH] fix windows build --- src/backend/consumer.rs | 8 ++++---- src/backend/producer.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend/consumer.rs b/src/backend/consumer.rs index 7426052..7c03040 100644 --- a/src/backend/consumer.rs +++ b/src/backend/consumer.rs @@ -1,14 +1,14 @@ #[cfg(windows)] pub mod windows; -#[cfg(feature="x11")] +#[cfg(all(unix, feature="x11"))] pub mod x11; -#[cfg(feature = "wayland")] +#[cfg(all(unix, feature = "wayland"))] pub mod wlroots; -#[cfg(feature = "xdg_desktop_portal")] +#[cfg(all(unix, feature = "xdg_desktop_portal"))] pub mod xdg_desktop_portal; -#[cfg(feature = "libei")] +#[cfg(all(unix, feature = "libei"))] pub mod libei; diff --git a/src/backend/producer.rs b/src/backend/producer.rs index 67a401b..9ca2662 100644 --- a/src/backend/producer.rs +++ b/src/backend/producer.rs @@ -1,6 +1,6 @@ -#[cfg(feature = "wayland")] +#[cfg(all(unix, feature = "wayland"))] pub mod wayland; #[cfg(windows)] pub mod windows; -#[cfg(feature = "x11")] +#[cfg(all(unix, feature = "x11"))] pub mod x11;