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 @@ -327,13 +327,14 @@ s! {
327
327
// to false. So I'm just removing these, and if uClibc changes
328
328
// the #if block in the future to include the following fields, these
329
329
// 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" ) ) ) ]
331
332
pub dlpi_adds: :: c_ulonglong,
332
- #[ cfg( not( target_env = "uclibc" ) ) ]
333
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
333
334
pub dlpi_subs: :: c_ulonglong,
334
- #[ cfg( not( target_env = "uclibc" ) ) ]
335
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
335
336
pub dlpi_tls_modid: :: size_t,
336
- #[ cfg( not( target_env = "uclibc" ) ) ]
337
+ #[ cfg( not( any ( target_env = "uclibc" , target_os = "nto" ) ) ) ]
337
338
pub dlpi_tls_data: * mut :: c_void,
338
339
}
339
340
Original file line number Diff line number Diff line change @@ -3340,7 +3340,10 @@ extern "C" {
3340
3340
pub fn dl_iterate_phdr (
3341
3341
callback : :: Option <
3342
3342
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 ,
3344
3347
size : :: size_t ,
3345
3348
data : * mut :: c_void ,
3346
3349
) -> :: c_int ,
You can’t perform that action at this time.
0 commit comments