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! {
41
41
target_os = "openbsd" ,
42
42
target_os = "solaris" ,
43
43
target_os = "illumos" ,
44
+ target_os = "nto" ,
44
45
) ) ] {
45
46
#[ path = "gimli/mmap_unix.rs" ]
46
47
mod mmap;
@@ -179,6 +180,7 @@ cfg_if::cfg_if! {
179
180
target_os = "freebsd" ,
180
181
target_os = "openbsd" ,
181
182
all( target_os = "android" , feature = "dl_iterate_phdr" ) ,
183
+ target_os = "nto" ,
182
184
) ,
183
185
not( target_env = "uclibc" ) ,
184
186
) ) ] {
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ fn infer_current_exe(base_addr: usize) -> OsString {
34
34
// `info` should be a valid pointers.
35
35
// `vec` should be a valid pointer to a `std::Vec`.
36
36
unsafe extern "C" fn callback (
37
+ #[ cfg( not( target_os = "nto" ) ) ]
37
38
info : * mut libc:: dl_phdr_info ,
39
+ #[ cfg( target_os = "nto" ) ]
40
+ info : * const libc:: dl_phdr_info ,
38
41
_size : libc:: size_t ,
39
42
vec : * mut libc:: c_void ,
40
43
) -> libc:: c_int {
You can’t perform that action at this time.
0 commit comments