Thread native name setting, fix #10302

This commit is contained in:
Vojtech Kral 2015-01-28 14:01:14 +01:00
parent 33a3d6d88f
commit 7e67eba180
1 changed files with 1 additions and 1 deletions

View File

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