From 00e89341cd89f58d031eee8a4e60f6ebdcd53185 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 9 May 2025 10:12:50 +0200 Subject: [PATCH] fix: Fix build on NetBSD rustix::fs 1.x has unified the nanonseconds member across operating systems. --- gix-index/src/fs.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gix-index/src/fs.rs b/gix-index/src/fs.rs index 5fb369f9eef..2be45bb8d7a 100644 --- a/gix-index/src/fs.rs +++ b/gix-index/src/fs.rs @@ -59,10 +59,8 @@ impl Metadata { #[cfg(any(target_os = "aix", target_os = "hurd"))] let seconds = self.0.st_mtim.tv_sec; - #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))] + #[cfg(not(any(target_os = "aix", target_os = "hurd")))] let nanoseconds = self.0.st_mtime_nsec; - #[cfg(target_os = "netbsd")] - let nanoseconds = self.0.st_mtimensec; #[cfg(any(target_os = "aix", target_os = "hurd"))] let nanoseconds = self.0.st_mtim.tv_nsec; @@ -88,10 +86,8 @@ impl Metadata { #[cfg(any(target_os = "aix", target_os = "hurd"))] let seconds = self.0.st_ctim.tv_sec; - #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))] + #[cfg(not(any(target_os = "aix", target_os = "hurd")))] let nanoseconds = self.0.st_ctime_nsec; - #[cfg(target_os = "netbsd")] - let nanoseconds = self.0.st_ctimensec; #[cfg(any(target_os = "aix", target_os = "hurd"))] let nanoseconds = self.0.st_ctim.tv_nsec;