Skip to content

Commit 33c4d6b

Browse files
authored
Merge pull request #2005 from 0-wiz-0/main
Fix build on NetBSD.
2 parents 9d0c809 + 00e8934 commit 33c4d6b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

gix-index/src/fs.rs

Lines changed: 2 additions & 6 deletions
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)