about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorB I Mohammed Abbas <bimohammadabbas@gmail.com>2025-07-09 09:54:08 +0530
committerB I Mohammed Abbas <bimohammadabbas@gmail.com>2025-07-09 09:54:08 +0530
commit663733584561320e07623205f2c2dfcf43c375c1 (patch)
tree4f6453ddf5927f80eef9892e24d400ec4e458569 /library/std/src
parent34097a38afc9efdedf776d3f1c84a190ff334886 (diff)
downloadrust-663733584561320e07623205f2c2dfcf43c375c1.tar.gz
rust-663733584561320e07623205f2c2dfcf43c375c1.zip
Fix VxWorks build errors
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sys/fs/unix.rs1
-rw-r--r--library/std/src/sys/pal/unix/thread.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/fs/unix.rs b/library/std/src/sys/fs/unix.rs
index dc278274f00..b310db2dac4 100644
--- a/library/std/src/sys/fs/unix.rs
+++ b/library/std/src/sys/fs/unix.rs
@@ -1491,7 +1491,6 @@ impl File {
             target_os = "redox",
             target_os = "espidf",
             target_os = "horizon",
-            target_os = "vxworks",
             target_os = "nuttx",
         )))]
         let to_timespec = |time: Option<SystemTime>| match time {
diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs
index 53f0d1eeda5..e4f5520d8a3 100644
--- a/library/std/src/sys/pal/unix/thread.rs
+++ b/library/std/src/sys/pal/unix/thread.rs
@@ -222,7 +222,7 @@ impl Thread {
 
     #[cfg(target_os = "vxworks")]
     pub fn set_name(name: &CStr) {
-        let mut name = truncate_cstr::<{ libc::VX_TASK_RENAME_LENGTH - 1 }>(name);
+        let mut name = truncate_cstr::<{ (libc::VX_TASK_RENAME_LENGTH - 1) as usize }>(name);
         let res = unsafe { libc::taskNameSet(libc::taskIdSelf(), name.as_mut_ptr()) };
         debug_assert_eq!(res, libc::OK);
     }