Skip to content

Commit 7cd5f19

Browse files
authored
Unrolled build for #148126
Rollup merge of #148126 - hax0kartik:vx-fix-148125, r=Mark-Simulacrum Fix rust stdlib build failing for VxWorks Fixes #148125. O_NOFOLLOW is not supported on VxWorks. All the other defines/functions have been added to libc(rust-lang/libc@0cd5032)
2 parents acda5e9 + abd9fb4 commit 7cd5f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub fn set_permissions(path: &Path, perm: FilePermissions) -> io::Result<()> {
122122
with_native_path(path, &|path| imp::set_perm(path, perm.clone()))
123123
}
124124

125-
#[cfg(unix)]
125+
#[cfg(all(unix, not(target_os = "vxworks")))]
126126
pub fn set_permissions_nofollow(path: &Path, perm: crate::fs::Permissions) -> io::Result<()> {
127127
use crate::fs::OpenOptions;
128128

@@ -139,7 +139,7 @@ pub fn set_permissions_nofollow(path: &Path, perm: crate::fs::Permissions) -> io
139139
options.open(path)?.set_permissions(perm)
140140
}
141141

142-
#[cfg(not(unix))]
142+
#[cfg(any(not(unix), target_os = "vxworks"))]
143143
pub fn set_permissions_nofollow(_path: &Path, _perm: crate::fs::Permissions) -> io::Result<()> {
144144
crate::unimplemented!(
145145
"`set_permissions_nofollow` is currently only implemented on Unix platforms"

0 commit comments

Comments
 (0)