File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ cfg_if::cfg_if! {
4141 target_os = "openbsd" ,
4242 target_os = "solaris" ,
4343 target_os = "illumos" ,
44+ target_os = "nto" ,
4445 ) ) ] {
4546 #[ path = "gimli/mmap_unix.rs" ]
4647 mod mmap;
@@ -179,6 +180,7 @@ cfg_if::cfg_if! {
179180 target_os = "freebsd" ,
180181 target_os = "openbsd" ,
181182 all( target_os = "android" , feature = "dl_iterate_phdr" ) ,
183+ target_os = "nto" ,
182184 ) ,
183185 not( target_env = "uclibc" ) ,
184186 ) ) ] {
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ fn infer_current_exe(base_addr: usize) -> OsString {
3434// `info` should be a valid pointers.
3535// `vec` should be a valid pointer to a `std::Vec`.
3636unsafe extern "C" fn callback (
37+ #[ cfg( not( target_os = "nto" ) ) ]
3738 info : * mut libc:: dl_phdr_info ,
39+ #[ cfg( target_os = "nto" ) ]
40+ info : * const libc:: dl_phdr_info ,
3841 _size : libc:: size_t ,
3942 vec : * mut libc:: c_void ,
4043) -> libc:: c_int {
You can’t perform that action at this time.
0 commit comments