CFI: Add missing use core::ffi::c_int

Adds missing use core::ffi::c_int for when
sanitizer_cfi_normalize_integers is defined.
This commit is contained in:
Ramon de C Valle 2023-11-10 07:42:27 -08:00
parent 07a4b7e2a9
commit 55e3dc487f
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
/// This is necessary because the __cxa_thread_atexit_impl implementation
/// std links to by default may be a C or C++ implementation that was not
/// compiled using the Clang integer normalization option.
#[cfg(sanitizer_cfi_normalize_integers)]
use core::ffi::c_int;
#[cfg(not(sanitizer_cfi_normalize_integers))]
#[cfi_encoding = "i"]
#[repr(transparent)]