]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/unix/thread.rs
Add support for the Haiku operating system on x86 and x86_64 machines
[rust.git] / src / libstd / sys / unix / thread.rs
index 5db7086e42752b1387227bba79c10a30818b70aa..98a4168d4fd347e641e0b6d99b0faa23425222bb 100644 (file)
@@ -120,6 +120,11 @@ pub fn set_name(_name: &CStr) {
         // Newlib, Illumos and Emscripten have no way to set a thread name.
     }
 
+    #[cfg(target_os = "haiku")]
+    pub fn set_name(_name: &CStr) {
+        // Haiku has no way to set a thread name.
+    }
+
     pub fn sleep(dur: Duration) {
         let mut secs = dur.as_secs();
         let mut nsecs = dur.subsec_nanos() as libc::c_long;