Skip to content

Commit

Permalink
Add sun_path to the fake doc sockaddr_un
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Sep 26, 2024
1 parent a51b0a2 commit 9431d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/std/src/os/unix/net/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9431d1a

Please sign in to comment.