diff options
| author | Josh Stone <cuviper@gmail.com> | 2016-07-11 21:35:47 -0700 |
|---|---|---|
| committer | Josh Stone <cuviper@gmail.com> | 2016-07-11 21:35:47 -0700 |
| commit | ef1bd087ee8f741972783b0ac7caa41518cca9a9 (patch) | |
| tree | cf65d7b1c2f2d8e3618c65e9d4af1f26526d8412 /src/libstd/sys | |
| parent | 3265bd54b5b3f32d038273afec7554f007a5ce1d (diff) | |
| download | rust-ef1bd087ee8f741972783b0ac7caa41518cca9a9.tar.gz rust-ef1bd087ee8f741972783b0ac7caa41518cca9a9.zip | |
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.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/thread.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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; |
