From ef1bd087ee8f741972783b0ac7caa41518cca9a9 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 11 Jul 2016 21:35:47 -0700 Subject: [PATCH] std: Fix `Thread::set_name()` for newlib and solaris The `use ffi::CStr` in `unix/thread.rs` was previously guarded, but now all platforms need it for `Thread::set_name()`. Newlib and Solaris do nothing here, as they have no way to set a thread name, but they still define the same method signature. --- src/libstd/sys/unix/thread.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs index 371319a93d2..1061ca87f64 100644 --- a/src/libstd/sys/unix/thread.rs +++ b/src/libstd/sys/unix/thread.rs @@ -12,7 +12,6 @@ use prelude::v1::*; use alloc::boxed::FnBox; use cmp; -#[cfg(not(any(target_env = "newlib", target_os = "solaris")))] use ffi::CStr; use io; use libc;