File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -469,13 +469,14 @@ s! {
469
469
// to false. So I'm just removing these, and if uClibc changes
470
470
// the #if block in the future to include the following fields, these
471
471
// will probably need including here. tsidea, skrap
472
- #[ cfg( not( target_env = "uclibc" ) ) ]
472
+ // QNX (NTO) platform does not define these fields
473
+ #[ cfg( not( any( target_env = "uclibc" , target_os = "nto" ) ) ) ]
473
474
pub dlpi_adds: :: c_ulonglong,
474
- #[ cfg( not( target_env = "uclibc" ) ) ]
475
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
475
476
pub dlpi_subs: :: c_ulonglong,
476
- #[ cfg( not( target_env = "uclibc" ) ) ]
477
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
477
478
pub dlpi_tls_modid: :: size_t,
478
- #[ cfg( not( target_env = "uclibc" ) ) ]
479
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
479
480
pub dlpi_tls_data: * mut :: c_void,
480
481
}
481
482
Original file line number Diff line number Diff line change @@ -3339,7 +3339,10 @@ extern "C" {
3339
3339
pub fn dl_iterate_phdr (
3340
3340
callback : :: Option <
3341
3341
unsafe extern "C" fn (
3342
- info : * const dl_phdr_info ,
3342
+ // The original .h file declares this as *const, but for consistency with other platforms,
3343
+ // changing this to *mut to make it easier to use.
3344
+ // Maybe in v0.3 all platforms should use this as a *const.
3345
+ info : * mut dl_phdr_info ,
3343
3346
size : :: size_t ,
3344
3347
data : * mut :: c_void ,
3345
3348
) -> :: c_int ,
You can’t perform that action at this time.
0 commit comments