Skip to content

Commit 2a36fa3

Browse files
authored
fix(build): unbreak building on OpenBSD (#245)
Building rustic_core on OpenBSD fails with: ``` error[E0412]: cannot find type `ExtendedAttribute` in this scope --> /tmp/pobj/rustic-0.8.0/rustic-0.8.0/modcargo-crates/rustic_core-0.3.0/src/backend/ignore.rs:476:62 | 476 | ...usticResult<Vec<ExtendedAttribute>> { | ^^^^^^^^^^^^^^^^^ not found in this scope | help: consider importing this struct | 1 + use crate::backend::node::ExtendedAttribute; | ``` Unbreak by fixing a conditional check.
1 parent 28c015a commit 2a36fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/src/backend/ignore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use log::warn;
2020
#[cfg(not(windows))]
2121
use nix::unistd::{Gid, Group, Uid, User};
2222

23-
#[cfg(not(any(windows, target_os = "openbsd")))]
23+
#[cfg(not(windows))]
2424
use crate::backend::node::ExtendedAttribute;
2525

2626
use crate::{

0 commit comments

Comments
 (0)