mirror of
https://github.com/golang/sys.git
synced 2026-01-29 07:02:06 +03:00
unix: provide Msghdr.SetIovlen on openbsd/mips64
Fixes golang/go#53575 Change-Id: Ie9bbe074f9adaf9c194e4458bbf2efb3acd8f110 Reviewed-on: https://go-review.googlesource.com/c/sys/+/414554 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Joel Sing <joel@sing.id.au> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
87e55d7148
commit
f75cf1eec3
@@ -26,6 +26,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user