about summary refs log tree commit diff
path: root/library/std/src/sys/thread_local/key/unix.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/thread_local/key/unix.rs')
-rw-r--r--library/std/src/sys/thread_local/key/unix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/thread_local/key/unix.rs b/library/std/src/sys/thread_local/key/unix.rs
index b4b58b34706..93bd0d1f668 100644
--- a/library/std/src/sys/thread_local/key/unix.rs
+++ b/library/std/src/sys/thread_local/key/unix.rs
@@ -8,7 +8,7 @@ mod libc {
     #[allow(non_camel_case_types)]
     pub type pthread_key_t = ffi::c_uint;
 
-    extern "C" {
+    unsafe extern "C" {
         pub fn pthread_key_create(
             key: *mut pthread_key_t,
             destructor: unsafe extern "C" fn(*mut ffi::c_void),