Skip to content

Commit 7e67eba

Browse files
committed
Thread native name setting, fix #10302
1 parent 33a3d6d commit 7e67eba

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
@@ -296,7 +296,7 @@ extern {
296296
fn pthread_set_name_np(tid: libc::pthread_t, name: *const libc::c_char);
297297
}
298298

299-
#[cfg(target_os = "macos")]
299+
#[cfg(any(target_os = "macos", target_os = "ios"))]
300300
extern {
301301
pub fn pthread_self() -> libc::pthread_t;
302302
pub fn pthread_get_stackaddr_np(thread: libc::pthread_t) -> *mut libc::c_void;

0 commit comments

Comments
 (0)