about summary refs log tree commit diff
path: root/library/std/src/sys/pal/wasi/thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/pal/wasi/thread.rs')
-rw-r--r--library/std/src/sys/pal/wasi/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/wasi/thread.rs b/library/std/src/sys/pal/wasi/thread.rs
index f5e19f26bfe..0ae02369410 100644
--- a/library/std/src/sys/pal/wasi/thread.rs
+++ b/library/std/src/sys/pal/wasi/thread.rs
@@ -35,7 +35,7 @@ cfg_if::cfg_if! {
 
             pub const _SC_NPROCESSORS_ONLN: ffi::c_int = 84;
 
-            extern "C" {
+            unsafe extern "C" {
                 pub fn pthread_create(
                     native: *mut pthread_t,
                     attr: *const pthread_attr_t,