diff --git a/fish-rust/src/wutil/fileid.rs b/fish-rust/src/wutil/fileid.rs index 943a89f38..8e906e152 100644 --- a/fish-rust/src/wutil/fileid.rs +++ b/fish-rust/src/wutil/fileid.rs @@ -4,11 +4,13 @@ use std::os::fd::RawFd; use std::os::fd::{FromRawFd, IntoRawFd}; +#[cfg(target_os = "freebsd")] +use std::os::freebsd::fs::MetadataExt; #[cfg(target_os = "linux")] use std::os::linux::fs::MetadataExt; #[cfg(target_os = "macos")] use std::os::macos::fs::MetadataExt; -#[cfg(not(any(target_os = "macos", target_os = "linux")))] +#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "freebsd")))] use std::os::unix::fs::MetadataExt; /// Struct for representing a file's inode. We use this to detect and avoid symlink loops, among