diff options
| author | B I Mohammed Abbas <bimohammadabbas@gmail.com> | 2025-05-14 13:52:23 +0530 |
|---|---|---|
| committer | B I Mohammed Abbas <bimohammadabbas@gmail.com> | 2025-05-14 13:52:31 +0530 |
| commit | 544c8ce535c834d726b5dd252046aa5eeb1bf5ec (patch) | |
| tree | d0ca6e550ec91e2eaa348eb97e6444fa3181368a | |
| parent | e1f1878da550408e800742217881730c2b06d1ec (diff) | |
| download | rust-544c8ce535c834d726b5dd252046aa5eeb1bf5ec.tar.gz rust-544c8ce535c834d726b5dd252046aa5eeb1bf5ec.zip | |
Fix settimes for vxworks
| -rw-r--r-- | library/std/src/sys/fs/unix.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/fs/unix.rs b/library/std/src/sys/fs/unix.rs index 863358596c1..a3e520fdeef 100644 --- a/library/std/src/sys/fs/unix.rs +++ b/library/std/src/sys/fs/unix.rs @@ -1498,11 +1498,10 @@ impl File { None => Ok(libc::timespec { tv_sec: 0, tv_nsec: libc::UTIME_OMIT as _ }), }; cfg_if::cfg_if! { - if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "vxworks", target_os = "nuttx"))] { + if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "nuttx"))] { // Redox doesn't appear to support `UTIME_OMIT`. // ESP-IDF and HorizonOS do not support `futimens` at all and the behavior for those OS is therefore // the same as for Redox. - // `futimens` and `UTIME_OMIT` are a work in progress for vxworks. let _ = times; Err(io::const_error!( io::ErrorKind::Unsupported, |
