From 329db0dd9c91849d6f5de536b6c07e4c6d39797e Mon Sep 17 00:00:00 2001 From: auronandace Date: Sat, 29 Nov 2025 15:33:31 +0000 Subject: [PATCH] add Dl_info_t alias for Dl_info --- src/header/dlfcn/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/header/dlfcn/mod.rs b/src/header/dlfcn/mod.rs index 630dbeaa03..a22d88f0b2 100644 --- a/src/header/dlfcn/mod.rs +++ b/src/header/dlfcn/mod.rs @@ -48,9 +48,12 @@ pub struct Dl_info { dli_saddr: *mut c_void, } +/// alias as per spec update: https://www.austingroupbugs.net/view.php?id=1847 +pub type Dl_info_t = Dl_info; + /// See . #[unsafe(no_mangle)] -pub unsafe extern "C" fn dladdr(_addr: *mut c_void, info: *mut Dl_info) -> c_int { +pub unsafe extern "C" fn dladdr(_addr: *mut c_void, info: *mut Dl_info_t) -> c_int { //TODO unsafe { (*info).dli_fname = ptr::null();