From 66c1aed810214b27924c8a69477dbbcd1472b0c1 Mon Sep 17 00:00:00 2001 From: nardor Date: Mon, 5 Aug 2024 10:30:52 +0200 Subject: [PATCH] fix: cfg conditional compilation to fix windows compilation --- crates/core/src/backend/ignore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/backend/ignore.rs b/crates/core/src/backend/ignore.rs index 174fe97a2..e6f52c8d1 100644 --- a/crates/core/src/backend/ignore.rs +++ b/crates/core/src/backend/ignore.rs @@ -472,7 +472,7 @@ fn get_group_by_gid(gid: u32) -> Option { } } -#[cfg(target_os = "openbsd")] +#[cfg(all(not(windows), target_os = "openbsd"))] fn list_extended_attributes(path: &Path) -> RusticResult> { Ok(vec![]) } @@ -486,7 +486,7 @@ fn list_extended_attributes(path: &Path) -> RusticResult> /// # Errors /// /// * [`IgnoreErrorKind::ErrorXattr`] - if Xattr couldn't be listed or couldn't be read -#[cfg(not(target_os = "openbsd"))] +#[cfg(all(not(windows), not(target_os = "openbsd")))] fn list_extended_attributes(path: &Path) -> RusticResult> { Ok(xattr::list(path) .map_err(|err| IgnoreErrorKind::ErrorXattr {