Skip to content

Commit

Permalink
fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Sep 27, 2024
1 parent b0fb708 commit 7712c07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fs/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ impl JoshutoMetadata {
#[cfg(not(target_os = "macos"))]
let sflag = SFlag::from_bits_truncate(metadata_mode);

#[cfg(target_os = "macos")]
let mode = Mode::from_bits_truncate(metadata_mode as mode_t);

#[cfg(not(target_os = "macos"))]
let mode = Mode::from_bits_truncate(metadata_mode);

(FileType::from_mode(sflag), mode)
}
_ => (FileType::File, Mode::empty()),
Expand Down

0 comments on commit 7712c07

Please sign in to comment.