move Dl_info struct per system
- under openbsd and bitrig: dli_saddr member is *mut ::c_void - under netbsd: it is *const ::c_void
This commit is contained in:
parent
9e8707902f
commit
15cb33670d
@ -99,6 +99,13 @@ s! {
|
||||
pub si_errno: ::c_int,
|
||||
pub si_addr: *mut ::c_void
|
||||
}
|
||||
|
||||
pub struct Dl_info {
|
||||
pub dli_fname: *const ::c_char,
|
||||
pub dli_fbase: *mut ::c_void,
|
||||
pub dli_sname: *const ::c_char,
|
||||
pub dli_saddr: *mut ::c_void,
|
||||
}
|
||||
}
|
||||
|
||||
pub const O_CLOEXEC: ::c_int = 0x10000;
|
||||
|
@ -24,13 +24,6 @@ s! {
|
||||
pub ss_flags: ::c_int,
|
||||
}
|
||||
|
||||
pub struct Dl_info {
|
||||
pub dli_fname: *const ::c_char,
|
||||
pub dli_fbase: *mut ::c_void,
|
||||
pub dli_sname: *const ::c_char,
|
||||
pub dli_saddr: *const ::c_void,
|
||||
}
|
||||
|
||||
pub struct sockaddr_in {
|
||||
pub sin_len: u8,
|
||||
pub sin_family: ::sa_family_t,
|
||||
|
@ -182,6 +182,13 @@ s! {
|
||||
pub dqb_btime: ::int32_t,
|
||||
pub dqb_itime: ::int32_t,
|
||||
}
|
||||
|
||||
pub struct Dl_info {
|
||||
pub dli_fname: *const ::c_char,
|
||||
pub dli_fbase: *mut ::c_void,
|
||||
pub dli_sname: *const ::c_char,
|
||||
pub dli_saddr: *const ::c_void,
|
||||
}
|
||||
}
|
||||
|
||||
pub const O_CLOEXEC: ::c_int = 0x400000;
|
||||
|
@ -102,6 +102,13 @@ s! {
|
||||
pub si_addr: *mut ::c_void,
|
||||
__pad: [u8; 116],
|
||||
}
|
||||
|
||||
pub struct Dl_info {
|
||||
pub dli_fname: *const ::c_char,
|
||||
pub dli_fbase: *mut ::c_void,
|
||||
pub dli_sname: *const ::c_char,
|
||||
pub dli_saddr: *mut ::c_void,
|
||||
}
|
||||
}
|
||||
|
||||
pub const O_CLOEXEC: ::c_int = 0x10000;
|
||||
|
Loading…
Reference in New Issue
Block a user