Unified · Split
| @@ -59,10 +59,8 @@ impl Metadata { · 58 unmodified lines | |||
| 59 | #[cfg(any(target_os = "aix", target_os = "hurd"))] | 59 | #[cfg(any(target_os = "aix", target_os = "hurd"))] |
| 60 | let seconds = self.0.st_mtim.tv_sec; | 60 | let seconds = self.0.st_mtim.tv_sec; |
| 61 | 61 | ||
| 62 | #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))] | 62 | #[cfg(not(any(target_os = "aix", target_os = "hurd")))] |
| 63 | let nanoseconds = self.0.st_mtime_nsec; | 63 | let nanoseconds = self.0.st_mtime_nsec; |
| 64 | #[cfg(target_os = "netbsd")] | ||
| 65 | let nanoseconds = self.0.st_mtimensec; | ||
| 66 | #[cfg(any(target_os = "aix", target_os = "hurd"))] | 64 | #[cfg(any(target_os = "aix", target_os = "hurd"))] |
| 67 | let nanoseconds = self.0.st_mtim.tv_nsec; | 65 | let nanoseconds = self.0.st_mtim.tv_nsec; |
| 68 | 66 | ||
| @@ -88,10 +86,8 @@ impl Metadata { · 19 unmodified lines | |||
| 88 | #[cfg(any(target_os = "aix", target_os = "hurd"))] | 86 | #[cfg(any(target_os = "aix", target_os = "hurd"))] |
| 89 | let seconds = self.0.st_ctim.tv_sec; | 87 | let seconds = self.0.st_ctim.tv_sec; |
| 90 | 88 | ||
| 91 | #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))] | 89 | #[cfg(not(any(target_os = "aix", target_os = "hurd")))] |
| 92 | let nanoseconds = self.0.st_ctime_nsec; | 90 | let nanoseconds = self.0.st_ctime_nsec; |
| 93 | #[cfg(target_os = "netbsd")] | ||
| 94 | let nanoseconds = self.0.st_ctimensec; | ||
| 95 | #[cfg(any(target_os = "aix", target_os = "hurd"))] | 91 | #[cfg(any(target_os = "aix", target_os = "hurd"))] |
| 96 | let nanoseconds = self.0.st_ctim.tv_nsec; | 92 | let nanoseconds = self.0.st_ctim.tv_nsec; |
| 97 | 93 | ||