diff --git a/packages/nx/src/native/utils/get_mod_time.rs b/packages/nx/src/native/utils/get_mod_time.rs index 8171a23bbf434..f50481cae56cf 100644 --- a/packages/nx/src/native/utils/get_mod_time.rs +++ b/packages/nx/src/native/utils/get_mod_time.rs @@ -12,7 +12,7 @@ pub fn get_mod_time(metadata: &Metadata) -> i64 { metadata.last_write_time() as i64 } -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] pub fn get_mod_time(metadata: &Metadata) -> i64 { use std::os::unix::fs::MetadataExt; metadata.mtime()