Skip to content

Commit

Permalink
fix(build): unbreak building on OpenBSD (#245)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bket authored Aug 29, 2024
1 parent 28c015a commit 2a36fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/backend/ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use log::warn;
#[cfg(not(windows))]
use nix::unistd::{Gid, Group, Uid, User};

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

use crate::{
Expand Down

0 comments on commit 2a36fa3

Please sign in to comment.