1
Fork 0

Add sun_path to the fake doc sockaddr_un

This commit is contained in:
Josh Stone 2024-09-26 09:33:30 -07:00
parent a51b0a2adf
commit 9431d1ab4e

View file

@ -15,7 +15,9 @@ mod libc {
pub type socklen_t = u32;
pub struct sockaddr;
#[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);