Skip to content

Commit de21e04

Browse files
authored
Rollup merge of rust-lang#150484 - thesummer:rtems-fix-utimesat, r=jhpratt
Mark set_times as unavailable for RTEMS target This PR just updates one of the config switches to exclude `utimesat` for the RTEMS target. This currently creates undefined reference errors when building the target. With this fix applied it also needs a fix in libc (see rust-lang/libc#4875) which will hopefully be available in release 0.2.179.
2 parents 09baabc + cfd859a commit de21e04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ fn open_from(from: &Path) -> io::Result<(crate::fs::File, crate::fs::Metadata)>
21662166

21672167
fn set_times_impl(p: &CStr, times: FileTimes, follow_symlinks: bool) -> io::Result<()> {
21682168
cfg_select! {
2169-
any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "nuttx", target_os = "vita") => {
2169+
any(target_os = "redox", target_os = "espidf", target_os = "horizon", target_os = "nuttx", target_os = "vita", target_os = "rtems") => {
21702170
let _ = (p, times, follow_symlinks);
21712171
Err(io::const_error!(
21722172
io::ErrorKind::Unsupported,

0 commit comments

Comments
 (0)