Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gix-index/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ impl Metadata {
{
Some(system_time_from_secs_nanos(
self.0.st_mtime.try_into().ok()?,
#[cfg(not(target_os = "netbsd"))]
self.0.st_mtime_nsec.try_into().ok()?,
#[cfg(target_os = "netbsd")]
self.0.st_mtimensec.try_into().ok()?,
))
}
#[cfg(windows)]
Expand All @@ -72,7 +75,10 @@ impl Metadata {
{
Some(system_time_from_secs_nanos(
self.0.st_ctime.try_into().ok()?,
#[cfg(not(target_os = "netbsd"))]
self.0.st_ctime_nsec.try_into().ok()?,
#[cfg(target_os = "netbsd")]
self.0.st_ctimensec.try_into().ok()?,
))
}
#[cfg(windows)]
Expand Down

0 comments on commit 03fa7ac

Please sign in to comment.