Skip to content

Commit a4b0fcd

Browse files
committed
CFI: Add missing use core::ffi::c_int
Adds missing use core::ffi::c_int for when sanitizer_cfi_normalize_integers is defined.
1 parent 07a4b7e commit a4b0fcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/sys/unix/thread_local_dtor.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! Provides thread-local destructors without an associated "key", which
55
//! can be more efficient.
66
7+
#[cfg(sanitizer_cfi_normalize_integers)]
8+
use core::ffi::c_int;
9+
710
// Since what appears to be glibc 2.18 this symbol has been shipped which
811
// GCC and clang both use to invoke destructors in thread_local globals, so
912
// let's do the same!

0 commit comments

Comments
 (0)