Skip to content

Commit

Permalink
std: use the c_int from core::ffi instead of libc
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet committed Jun 17, 2024
1 parent bd3b9ec commit 00d4964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/sys/thread_local/destructors/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub unsafe fn register(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
#[cfi_encoding = "i"]
#[repr(transparent)]
#[allow(non_camel_case_types)]
pub struct c_int(#[allow(dead_code)] pub libc::c_int);
pub struct c_int(#[allow(dead_code)] pub core::ffi::c_int);

extern "C" {
#[linkage = "extern_weak"]
Expand Down

0 comments on commit 00d4964

Please sign in to comment.