Skip to content

Commit 9431d1a

Browse files
committed
Add sun_path to the fake doc sockaddr_un
1 parent a51b0a2 commit 9431d1a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎library/std/src/os/unix/net/addr.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ mod libc {
1515
pubtypesocklen_t = u32;
1616
pubstructsockaddr;
1717
#[derive(Clone)]
18-
pubstructsockaddr_un;
18+
pubstructsockaddr_un{
19+
pubsun_path:[u8;1],
20+
}
1921
}
2022

2123
constSUN_PATH_OFFSET:usize = mem::offset_of!(libc::sockaddr_un, sun_path);

0 commit comments

Comments
 (0)