]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/unix/fs.rs
Auto merge of #85490 - CDirkx:fix-vxworks, r=dtolnay
[rust.git] / library / std / src / sys / unix / fs.rs
index ef14865fbcd39dc174197f68b21a1cd26896fb2a..f8ca67c844c91bac327797d454eaf7ab4b7ea603 100644 (file)
@@ -1329,7 +1329,7 @@ fn fclonefileat(
     Ok(bytes_copied as u64)
 }
 
-#[cfg(not(target_os = "fuchsia"))]
+#[cfg(not(any(target_os = "fuchsia", target_os = "vxworks")))]
 pub fn chroot(dir: &Path) -> io::Result<()> {
     let dir = cstr(dir)?;
     cvt(unsafe { libc::chroot(dir.as_ptr()) })?;