mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
ipv4, ipv6, icmp, internal/socket: fix build on netbsd/arm
Fixes golang/go#24346 Change-Id: I6b32d79135c0843d62425f4cc4c18f5a0eb9efd3 Reviewed-on: https://go-review.googlesource.com/100155 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
@@ -26,6 +26,11 @@ type msghdr struct {
|
||||
Flags int32
|
||||
}
|
||||
|
||||
type mmsghdr struct {
|
||||
Hdr msghdr
|
||||
Len uint32
|
||||
}
|
||||
|
||||
type cmsghdr struct {
|
||||
Len uint32
|
||||
Level int32
|
||||
@@ -52,6 +57,7 @@ type sockaddrInet6 struct {
|
||||
const (
|
||||
sizeofIovec = 0x8
|
||||
sizeofMsghdr = 0x1c
|
||||
sizeofMmsghdr = 0x20
|
||||
sizeofCmsghdr = 0xc
|
||||
|
||||
sizeofSockaddrInet = 0x10
|
||||
|
||||
Reference in New Issue
Block a user