Skip to content

Commit bddd5e7

Browse files
committed
Auto merge of #2274 - noproto:master, r=JohnTitor
Add dladdr1 for GNU/Linux platforms Hey, this is my first pull request in a large open source project. Let me know if I'm missing anything or if you see any compile errors. This addresses dladdr1 missing in the libc library for GNU/Linux platforms.
2 parents f3b7e0e + 2d6c833 commit bddd5e7

File tree

1 file changed

+6
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+6
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,12 @@ extern "C" {
13421342
extern "C" {
13431343
pub fn dlmopen(lmid: Lmid_t, filename: *const ::c_char, flag: ::c_int) -> *mut ::c_void;
13441344
pub fn dlinfo(handle: *mut ::c_void, request: ::c_int, info: *mut ::c_void) -> ::c_int;
1345+
pub fn dladdr1(
1346+
addr: *const ::c_void,
1347+
info: *mut ::Dl_info,
1348+
extra_info: *mut *mut ::c_void,
1349+
flags: ::c_int,
1350+
) -> ::c_int;
13451351
}
13461352

13471353
cfg_if! {

0 commit comments

Comments
 (0)