diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-19 12:41:30 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-21 17:31:25 +0200 |
| commit | dcea7709f2ce1be35ba241e923850b1099ceb906 (patch) | |
| tree | cba79acb5e56b9bb2de8f75a3ad7510410e0f101 /library/std/src/sys/unix/time.rs | |
| parent | ae9c330629f1fb03a636cb8af367fead024793db (diff) | |
| download | rust-dcea7709f2ce1be35ba241e923850b1099ceb906.tar.gz rust-dcea7709f2ce1be35ba241e923850b1099ceb906.zip | |
added support for GNU/Hurd
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
| -rw-r--r-- | library/std/src/sys/unix/time.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs index 17b4130c202..4fe61b28488 100644 --- a/library/std/src/sys/unix/time.rs +++ b/library/std/src/sys/unix/time.rs @@ -35,7 +35,7 @@ pub(in crate::sys::unix) struct Timespec { } impl SystemTime { - #[cfg_attr(target_os = "horizon", allow(unused))] + #[cfg_attr(any(target_os = "horizon", target_os = "hurd"), allow(unused))] pub fn new(tv_sec: i64, tv_nsec: i64) -> SystemTime { SystemTime { t: Timespec::new(tv_sec, tv_nsec) } } |
