Skip to content

Commit 9ee972c

Browse files
committed
Thread native name setting, fix rust-lang#10302
1 parent 7e67eba commit 9ee972c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libstd/sys/unix/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ fn min_stack_size(_: *const libc::pthread_attr_t) -> libc::size_t {
278278
PTHREAD_STACK_MIN
279279
}
280280

281-
#[cfg(any(target_os = "linux"))]
281+
#[cfg(any(target_os = "linux", target_os = "android"))]
282282
extern {
283283
pub fn pthread_self() -> libc::pthread_t;
284284
pub fn pthread_getattr_np(native: libc::pthread_t,

0 commit comments

Comments
 (0)