1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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
9 changed files with 81 additions and 101 deletions

View File

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