about summary refs log tree commit diff
path: root/src/libstd/sys/unix/thread_local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/unix/thread_local.rs')
-rw-r--r--src/libstd/sys/unix/thread_local.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/thread_local.rs b/src/libstd/sys/unix/thread_local.rs
index ac615b76b36..2c5b94b1e61 100644
--- a/src/libstd/sys/unix/thread_local.rs
+++ b/src/libstd/sys/unix/thread_local.rs
@@ -5,7 +5,7 @@ use crate::mem;
 pub type Key = libc::pthread_key_t;
 
 #[inline]
-pub unsafe fn create(dtor: Option<unsafe extern fn(*mut u8)>) -> Key {
+pub unsafe fn create(dtor: Option<unsafe extern "C" fn(*mut u8)>) -> Key {
     let mut key = 0;
     assert_eq!(libc::pthread_key_create(&mut key, mem::transmute(dtor)), 0);
     key