mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
net: ensure that net
and net.unix
can be imported together in the same program
This commit is contained in:
parent
14073ac0fe
commit
c9867a9ae4
9 changed files with 81 additions and 101 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue