diff --git a/library/std/src/sys/unix/thread_local_dtor.rs b/library/std/src/sys/unix/thread_local_dtor.rs index 06399e8a27427..73806a41f1cc5 100644 --- a/library/std/src/sys/unix/thread_local_dtor.rs +++ b/library/std/src/sys/unix/thread_local_dtor.rs @@ -4,6 +4,10 @@ //! Provides thread-local destructors without an associated "key", which //! can be more efficient. +#[allow(unexpected_cfgs)] +#[cfg(sanitizer_cfi_normalize_integers)] +use core::ffi::c_int; + // Since what appears to be glibc 2.18 this symbol has been shipped which // GCC and clang both use to invoke destructors in thread_local globals, so // let's do the same!