about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2015-01-28 16:52:53 +0100
committerVojtech Kral <vojtech@kral.hk>2015-01-28 16:52:53 +0100
commit9ee972ca32b1f91eb6880e1bc9c8bb5a4faf1f29 (patch)
tree32a07fb4e3d44acdb79e12fff3e086f15ef0b442 /src/libstd/sys
parent7e67eba180eb2efb09e1487020a9a160335e7926 (diff)
downloadrust-9ee972ca32b1f91eb6880e1bc9c8bb5a4faf1f29.tar.gz
rust-9ee972ca32b1f91eb6880e1bc9c8bb5a4faf1f29.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 d8e281bf5ab..26a450b8599 100644
--- a/src/libstd/sys/unix/thread.rs
+++ b/src/libstd/sys/unix/thread.rs
@@ -278,7 +278,7 @@ fn min_stack_size(_: *const libc::pthread_attr_t) -> libc::size_t {
     PTHREAD_STACK_MIN
 }
 
-#[cfg(any(target_os = "linux"))]
+#[cfg(any(target_os = "linux", target_os = "android"))]
 extern {
     pub fn pthread_self() -> libc::pthread_t;
     pub fn pthread_getattr_np(native: libc::pthread_t,