Skip to content

Commit

Permalink
Auto merge of #2274 - noproto:master, r=JohnTitor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jul 7, 2021
2 parents f3b7e0e + 2d6c833 commit bddd5e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,12 @@ extern "C" {
extern "C" {
pub fn dlmopen(lmid: Lmid_t, filename: *const ::c_char, flag: ::c_int) -> *mut ::c_void;
pub fn dlinfo(handle: *mut ::c_void, request: ::c_int, info: *mut ::c_void) -> ::c_int;
pub fn dladdr1(
addr: *const ::c_void,
info: *mut ::Dl_info,
extra_info: *mut *mut ::c_void,
flags: ::c_int,
) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit bddd5e7

Please sign in to comment.