Skip to content

Commit 440c4bf

Browse files
committed
fix: cfg conditional compilation to fix windows compilation
1 parent 2058364 commit 440c4bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core/src/backend/ignore.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ fn get_group_by_gid(gid: u32) -> Option<String> {
472472
}
473473
}
474474

475-
#[cfg(target_os = "openbsd")]
475+
#[cfg(all(not(windows), target_os = "openbsd"))]
476476
fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>> {
477477
Ok(vec![])
478478
}
@@ -486,7 +486,7 @@ fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>>
486486
/// # Errors
487487
///
488488
/// * [`IgnoreErrorKind::ErrorXattr`] - if Xattr couldn't be listed or couldn't be read
489-
#[cfg(not(target_os = "openbsd"))]
489+
#[cfg(all(not(windows), not(target_os = "openbsd")))]
490490
fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>> {
491491
Ok(xattr::list(path)
492492
.map_err(|err| IgnoreErrorKind::ErrorXattr {

0 commit comments

Comments
 (0)