Thread native name setting, fix #10302

This commit is contained in:
Vojtech Kral 2015-01-28 16:52:53 +01:00
parent 7e67eba180
commit 9ee972ca32
1 changed files with 1 additions and 1 deletions

View File

@ -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,