From 7bbe0d910656e8c63cb082f7070d0f173f46f6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 17 Dec 2024 13:00:22 +0200 Subject: [PATCH] gio: Only provide UNIX mount compat API on UNIX platforms See https://gitlab.gnome.org/GNOME/librsvg/-/issues/1126#note_2298554 --- gio/sys/src/manual.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/sys/src/manual.rs b/gio/sys/src/manual.rs index 11d40a900fa5..b679a6ee2c5d 100644 --- a/gio/sys/src/manual.rs +++ b/gio/sys/src/manual.rs @@ -174,6 +174,7 @@ mod windows_streams { } #[cfg(not(feature = "v2_84"))] +#[cfg(target_family = "unix")] mod unix_mount_compat { #![allow(clippy::missing_safety_doc)] @@ -284,4 +285,5 @@ mod unix_mount_compat { } #[cfg(not(feature = "v2_84"))] +#[cfg(target_family = "unix")] pub use unix_mount_compat::*;