add sockaddr_un to os/bits/windows

This commit is contained in:
Luna 2019-11-10 14:38:33 -03:00
parent d99ecef943
commit d1eabe81a9

View File

@ -186,6 +186,11 @@ pub const sockaddr_in6 = extern struct {
pub const in6_addr = [16]u8;
pub const in_addr = u32;
pub const sockaddr_un = extern struct {
family: sa_family_t = AF_UNIX,
path: [108]u8,
};
pub const AF_UNSPEC = 0;
pub const AF_UNIX = 1;
pub const AF_INET = 2;