File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,14 @@ s! {
327327 // to false. So I'm just removing these, and if uClibc changes
328328 // the #if block in the future to include the following fields, these
329329 // will probably need including here. tsidea, skrap
330- #[ cfg( not( target_env = "uclibc" ) ) ]
330+ // QNX (NTO) platform does not define these fields
331+ #[ cfg( not( any( target_env = "uclibc" , target_os = "nto" ) ) ) ]
331332 pub dlpi_adds: :: c_ulonglong,
332- #[ cfg( not( target_env = "uclibc" ) ) ]
333+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
333334 pub dlpi_subs: :: c_ulonglong,
334- #[ cfg( not( target_env = "uclibc" ) ) ]
335+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
335336 pub dlpi_tls_modid: :: size_t,
336- #[ cfg( not( target_env = "uclibc" ) ) ]
337+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
337338 pub dlpi_tls_data: * mut :: c_void,
338339 }
339340
Original file line number Diff line number Diff line change @@ -3340,7 +3340,10 @@ extern "C" {
33403340 pub fn dl_iterate_phdr (
33413341 callback : :: Option <
33423342 unsafe extern "C" fn (
3343- info : * const dl_phdr_info ,
3343+ // The original .h file declares this as *const, but for consistency with other platforms,
3344+ // changing this to *mut to make it easier to use.
3345+ // Maybe in v0.3 all platforms should use this as a *const.
3346+ info : * mut dl_phdr_info ,
33443347 size : :: size_t ,
33453348 data : * mut :: c_void ,
33463349 ) -> :: c_int ,
You can’t perform that action at this time.
0 commit comments