pthread_create expects an unsafe function
@@ -543,7 +543,7 @@ extern {
pub fn pthread_self() -> ::pthread_t;
pub fn pthread_create(native: *mut ::pthread_t,
attr: *const ::pthread_attr_t,
- f: extern fn(*mut ::c_void) -> *mut ::c_void,
+ f: unsafe extern fn(*mut ::c_void) -> *mut ::c_void,
value: *mut ::c_void) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "pthread_join$UNIX2003")]
