]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sys/unix/thread_local_dtor.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / library / std / src / sys / unix / thread_local_dtor.rs
index c3275eb6f0e50a836eab60f3061528e6bda9d44a..c3f410353b915bcd212e20b967b1ed2067273c1d 100644 (file)
@@ -92,3 +92,9 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
         }
     }
 }
+
+#[cfg(target_os = "vxworks")]
+pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
+    use crate::sys_common::thread_local_dtor::register_dtor_fallback;
+    register_dtor_fallback(t, dtor);
+}