History

fix: Fix build on NetBSD

Thomas Klausner committed 1 year ago

Commit 00e89341 parent 9d0c8091 file · +2 −6Browse files

Unified · Split

gix-index/src/fs.rs+2−6
@@ -59,10 +59,8 @@ impl Metadata { · 58 unmodified lines
5959 #[cfg(any(target_os = "aix", target_os = "hurd"))]
6060 let seconds = self.0.st_mtim.tv_sec;
6161
62− #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))]
62+ #[cfg(not(any(target_os = "aix", target_os = "hurd")))]
6363 let nanoseconds = self.0.st_mtime_nsec;
64− #[cfg(target_os = "netbsd")]
65− let nanoseconds = self.0.st_mtimensec;
6664 #[cfg(any(target_os = "aix", target_os = "hurd"))]
6765 let nanoseconds = self.0.st_mtim.tv_nsec;
6866
@@ -88,10 +86,8 @@ impl Metadata { · 19 unmodified lines
8886 #[cfg(any(target_os = "aix", target_os = "hurd"))]
8987 let seconds = self.0.st_ctim.tv_sec;
9088
91− #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))]
89+ #[cfg(not(any(target_os = "aix", target_os = "hurd")))]
9290 let nanoseconds = self.0.st_ctime_nsec;
93− #[cfg(target_os = "netbsd")]
94− let nanoseconds = self.0.st_ctimensec;
9591 #[cfg(any(target_os = "aix", target_os = "hurd"))]
9692 let nanoseconds = self.0.st_ctim.tv_nsec;
9793