Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 00d4964

Browse files
committedJun 17, 2024
std: use the c_int from core::ffi instead of libc
1 parent bd3b9ec commit 00d4964

File tree

1 file changed

+1
-1
lines changed
  • std/src/sys/thread_local/destructors

1 file changed

+1
-1
lines changed
 

‎std/src/sys/thread_local/destructors/linux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub unsafe fn register(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
2525
#[cfi_encoding = "i"]
2626
#[repr(transparent)]
2727
#[allow(non_camel_case_types)]
28-
pub struct c_int(#[allow(dead_code)] pub libc::c_int);
28+
pub struct c_int(#[allow(dead_code)] pub core::ffi::c_int);
2929

3030
extern "C" {
3131
#[linkage = "extern_weak"]

0 commit comments

Comments
 (0)
Failed to load comments.