File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ cfg_if::cfg_if! {
176176 unix,
177177 not( target_os = "emscripten" ) ,
178178 not( all( target_os = "ios" , target_arch = "arm" ) ) ,
179- not( all( target_os = "nto" , target_env = "nto70" ) ) ,
180179 ) ,
181180 all(
182181 target_env = "sgx" ,
Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ cfg_if::cfg_if! {
226226 target_os = "hurd" ,
227227 target_os = "openbsd" ,
228228 target_os = "netbsd" ,
229+ target_os = "nto" ,
229230 all( target_os = "android" , feature = "dl_iterate_phdr" ) ,
230231 ) ,
231232 not( target_env = "uclibc" ) ,
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ fn infer_current_exe(base_addr: usize) -> OsString {
3737
3838// `info` should be a valid pointers.
3939// `vec` should be a valid pointer to a `std::Vec`.
40+ // On `QNX-NTO` platform, info is a const pointer
4041unsafe extern "C" fn callback (
41- info : * mut libc:: dl_phdr_info ,
42+ #[ cfg( not( target_os = "nto" ) ) ] info : * mut libc:: dl_phdr_info ,
43+ #[ cfg( target_os = "nto" ) ] info : * const libc:: dl_phdr_info ,
4244 _size : libc:: size_t ,
4345 vec : * mut libc:: c_void ,
4446) -> libc:: c_int {
You can’t perform that action at this time.
0 commit comments