From 00d4964bb2214950d28ab998e7c76bc507b65e58 Mon Sep 17 00:00:00 2001 From: joboet Date: Mon, 17 Jun 2024 12:45:10 +0200 Subject: [PATCH] std: use the `c_int` from `core::ffi` instead of `libc` --- std/src/sys/thread_local/destructors/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/src/sys/thread_local/destructors/linux.rs b/std/src/sys/thread_local/destructors/linux.rs index e00ca9a91bd85..c381be0bf8c76 100644 --- a/std/src/sys/thread_local/destructors/linux.rs +++ b/std/src/sys/thread_local/destructors/linux.rs @@ -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"]