From 9ee972ca32b1f91eb6880e1bc9c8bb5a4faf1f29 Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Wed, 28 Jan 2015 16:52:53 +0100 Subject: [PATCH] Thread native name setting, fix #10302 --- src/libstd/sys/unix/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs index d8e281bf5abb..26a450b8599d 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,