File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ cfg_if::cfg_if! {
176
176
unix,
177
177
not( target_os = "emscripten" ) ,
178
178
not( all( target_os = "ios" , target_arch = "arm" ) ) ,
179
- not( all( target_os = "nto" , target_env = "nto70" ) ) ,
180
179
) ,
181
180
all(
182
181
target_env = "sgx" ,
Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ cfg_if::cfg_if! {
226
226
target_os = "hurd" ,
227
227
target_os = "openbsd" ,
228
228
target_os = "netbsd" ,
229
+ target_os = "nto" ,
229
230
all( target_os = "android" , feature = "dl_iterate_phdr" ) ,
230
231
) ,
231
232
not( target_env = "uclibc" ) ,
Original file line number Diff line number Diff line change @@ -37,8 +37,12 @@ fn infer_current_exe(base_addr: usize) -> OsString {
37
37
38
38
// `info` should be a valid pointers.
39
39
// `vec` should be a valid pointer to a `std::Vec`.
40
+ // On `QNX-NTO` platform, info is a const pointer
40
41
unsafe extern "C" fn callback (
42
+ #[ cfg( not( target_os = "nto" ) ) ]
41
43
info : * mut libc:: dl_phdr_info ,
44
+ #[ cfg( target_os = "nto" ) ]
45
+ info : * const libc:: dl_phdr_info ,
42
46
_size : libc:: size_t ,
43
47
vec : * mut libc:: c_void ,
44
48
) -> libc:: c_int {
You can’t perform that action at this time.
0 commit comments