net: ensure that net and net.unix can be imported together in the same program

This commit is contained in:
Delyan Angelov 2022-02-18 11:23:45 +02:00
parent 14073ac0fe
commit c9867a9ae4
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
9 changed files with 81 additions and 101 deletions

View file

@ -15,18 +15,21 @@ mut:
}
struct C.sockaddr_in {
mut:
sin_family u16
sin_port u16
sin_addr u32
}
struct C.sockaddr_in6 {
mut:
sin6_family u16
sin6_port u16
sin6_addr [4]u32
}
struct C.sockaddr_un {
mut:
sun_family u16
sun_path [max_unix_path]char
}