Skip to content

Commit 898c054

Browse files
author
B I Mohammed Abbas
committed
set times not supported for vxworks
1 parent 3234537 commit 898c054

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
@@ -1313,7 +1313,7 @@ impl File {
13131313
}
13141314

13151315
pub fn set_times(&self, times: FileTimes) -> io::Result<()> {
1316-
#[cfg(not(any(target_os = "redox", target_os = "espidf", target_os = "horizon")))]
1316+
#[cfg(not(any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "vxworks")))]
13171317
let to_timespec = |time: Option<SystemTime>| match time {
13181318
Some(time) if let Some(ts) = time.t.to_timespec() => Ok(ts),
13191319
Some(time) if time > crate::sys::time::UNIX_EPOCH => Err(io::const_io_error!(

0 commit comments

Comments
 (0)