Skip to content

Commit 544c8ce

Browse files
committed
Fix settimes for vxworks
1 parent e1f1878 commit 544c8ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/std/src/sys/fs/unix.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1498,11 +1498,10 @@ impl File {
14981498
None => Ok(libc::timespec { tv_sec: 0, tv_nsec: libc::UTIME_OMIT as _ }),
14991499
};
15001500
cfg_if::cfg_if! {
1501-
if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "vxworks", target_os = "nuttx"))] {
1501+
if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "nuttx"))] {
15021502
// Redox doesn't appear to support `UTIME_OMIT`.
15031503
// ESP-IDF and HorizonOS do not support `futimens` at all and the behavior for those OS is therefore
15041504
// the same as for Redox.
1505-
// `futimens` and `UTIME_OMIT` are a work in progress for vxworks.
15061505
let _ = times;
15071506
Err(io::const_error!(
15081507
io::ErrorKind::Unsupported,

0 commit comments

Comments
 (0)