pub fn modified(&self) -> Option<SystemTime> {
#[cfg(not(windows))]
{
- #[cfg(not(target_os = "aix"))]
+ #[cfg(not(any(target_os = "aix", target_os = "hurd")))]
let seconds = self.0.st_mtime;
- #[cfg(target_os = "aix")]
+ #[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")))]
+ #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))]
let nanoseconds = self.0.st_mtime_nsec;
#[cfg(target_os = "netbsd")]
let nanoseconds = self.0.st_mtimensec;
- #[cfg(target_os = "aix")]
+ #[cfg(any(target_os = "aix", target_os = "hurd"))]
let nanoseconds = self.0.st_mtim.tv_nsec;
// All operating systems treat the seconds as offset from unix epoch, hence it must
pub fn created(&self) -> Option<SystemTime> {
#[cfg(not(windows))]
{
- #[cfg(not(target_os = "aix"))]
+ #[cfg(not(any(target_os = "aix", target_os = "hurd")))]
let seconds = self.0.st_ctime;
- #[cfg(target_os = "aix")]
+ #[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")))]
+ #[cfg(not(any(target_os = "netbsd", target_os = "aix", target_os = "hurd")))]
let nanoseconds = self.0.st_ctime_nsec;
#[cfg(target_os = "netbsd")]
let nanoseconds = self.0.st_ctimensec;
- #[cfg(target_os = "aix")]
+ #[cfg(any(target_os = "aix", target_os = "hurd"))]
let nanoseconds = self.0.st_ctim.tv_nsec;
// All operating systems treat the seconds as offset from unix epoch, hence it must