Skip to content

Commit

Permalink
CFI: Add missing use core::ffi::c_int
Browse files Browse the repository at this point in the history
Adds missing use core::ffi::c_int for when
sanitizer_cfi_normalize_integers is defined.
  • Loading branch information
rcvalle committed Nov 10, 2023
1 parent 07a4b7e commit 8fcd7f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/sys/unix/thread_local_dtor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 8fcd7f9

Please sign in to comment.