Skip to content

Commit 0322191

Browse files
committed
Fix build on NetBSD.
rustix::fs 1.x has unified the nanonseconds member across operating systems.
1 parent 9d0c809 commit 0322191

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

gix-index/src/fs.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ impl Metadata {
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 {
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

0 commit comments

Comments
 (0)