Skip to content

Commit

Permalink
Modify QNX NTO dl_iterate_phdr to toke * mut
Browse files Browse the repository at this point in the history
All other platforms use `* mut`, and while this is technically a breaking change, most likely noone is using it directly.

See also rust-lang/backtrace-rs#648
  • Loading branch information
nyurik committed Aug 5, 2024
1 parent 59890b5 commit 22d54ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/unix/nto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3340,7 +3340,10 @@ extern "C" {
pub fn dl_iterate_phdr(
callback: ::Option<
unsafe extern "C" fn(
info: *const dl_phdr_info,
// The original .h file declares this as *const, but for consistency with other platforms,
// changing this to *mut to make it easier to use.
// Maybe in v0.3 all platforms should use this as a *const.
info: *mut dl_phdr_info,
size: ::size_t,
data: *mut ::c_void,
) -> ::c_int,
Expand Down

0 comments on commit 22d54ff

Please sign in to comment.