Fix Dl_info alias not exported

This commit is contained in:
Wildan M
2025-12-05 16:14:29 +07:00
parent 2a7c7c5d42
commit 8e4e43dcc4
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -371,4 +371,4 @@ pub extern "C" fn telldir(dir: &mut DIR) -> c_long {
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_posix_dent(a: posix_dent) {}
pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_posix_dent(_: posix_dent) {}
+3
View File
@@ -192,3 +192,6 @@ pub unsafe extern "C" fn dlclose(handle: *mut c_void) -> c_int {
pub extern "C" fn dlerror() -> *mut c_char {
ERROR.swap(0, Ordering::SeqCst) as *mut c_char
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_stupid_alias_dlinfo_for_dladdr(_: Dl_info) {}
+1 -1
View File
@@ -93,7 +93,7 @@ pub unsafe extern "C" fn open(path: *const c_char, oflag: c_int, mut __valist: .
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_fcntl(a: flock) {}
pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_fcntl(_: flock) {}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn posix_fallocate(fd: c_int, offset: off_t, length: off_t) -> c_int {
+1 -1
View File
@@ -541,4 +541,4 @@ pub unsafe extern "C" fn psiginfo(info: *const siginfo_t, prefix: *const c_char)
}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_stupid_struct_sigevent_for_timer(a: sigevent) {}
pub unsafe extern "C" fn cbindgen_stupid_struct_sigevent_for_timer(_: sigevent) {}