Skip to content

Commit 7c876b0

Browse files
author
B I Mohammed Abbas
committed
Return error from settimes for vxworks
1 parent 898c054 commit 7c876b0

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ impl File {
13271327
None => Ok(libc::timespec { tv_sec: 0, tv_nsec: libc::UTIME_OMIT as _ }),
13281328
};
13291329
cfg_if::cfg_if! {
1330-
if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon"))] {
1330+
if #[cfg(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "vxworks"))] {
13311331
// Redox doesn't appear to support `UTIME_OMIT`.
13321332
// ESP-IDF and HorizonOS do not support `futimens` at all and the behavior for those OS is therefore
13331333
// the same as for Redox.

0 commit comments

Comments
 (0)