Skip to content

Commit

Permalink
fix: cfg conditional compilation to fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
nardoor committed Aug 5, 2024
1 parent 39b47ef commit 66c1aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/backend/ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ fn get_group_by_gid(gid: u32) -> Option<String> {
}
}

#[cfg(target_os = "openbsd")]
#[cfg(all(not(windows), target_os = "openbsd"))]
fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>> {
Ok(vec![])
}
Expand All @@ -486,7 +486,7 @@ fn list_extended_attributes(path: &Path) -> RusticResult<Vec<ExtendedAttribute>>
/// # 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<Vec<ExtendedAttribute>> {
Ok(xattr::list(path)
.map_err(|err| IgnoreErrorKind::ErrorXattr {
Expand Down

0 comments on commit 66c1aed

Please sign in to comment.