summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2015-01-28 14:01:14 +0100
committerVojtech Kral <vojtech@kral.hk>2015-01-28 14:01:14 +0100
commit7e67eba180eb2efb09e1487020a9a160335e7926 (patch)
treea8f6bc795c52126b83fdd40a89b05d8a4f0bd672 /src/libstd/sys
parent33a3d6d88f76bfae770983ee50e36e23cc4c7655 (diff)
downloadrust-7e67eba180eb2efb09e1487020a9a160335e7926.tar.gz
rust-7e67eba180eb2efb09e1487020a9a160335e7926.zip
Thread native name setting, fix #10302
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs
index 59c2badaf62..d8e281bf5ab 100644
--- a/src/libstd/sys/unix/thread.rs
+++ b/src/libstd/sys/unix/thread.rs
@@ -296,7 +296,7 @@ extern {
     fn pthread_set_name_np(tid: libc::pthread_t, name: *const libc::c_char);
 }
 
-#[cfg(target_os = "macos")]
+#[cfg(any(target_os = "macos", target_os = "ios"))]
 extern {
     pub fn pthread_self() -> libc::pthread_t;
     pub fn pthread_get_stackaddr_np(thread: libc::pthread_t) -> *mut libc::c_void;