Add sun_path
to the fake doc sockaddr_un
This commit is contained in:
parent
a51b0a2adf
commit
9431d1ab4e
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ mod libc {
|
||||||
pub type socklen_t = u32;
|
pub type socklen_t = u32;
|
||||||
pub struct sockaddr;
|
pub struct sockaddr;
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct sockaddr_un;
|
pub struct sockaddr_un {
|
||||||
|
pub sun_path: [u8; 1],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const SUN_PATH_OFFSET: usize = mem::offset_of!(libc::sockaddr_un, sun_path);
|
const SUN_PATH_OFFSET: usize = mem::offset_of!(libc::sockaddr_un, sun_path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue