From f75cf1eec38b84b5cea42a93335150a532c7c75e Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Tue, 28 Jun 2022 04:16:01 +1000 Subject: [PATCH] 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 Run-TryBot: Joel Sing Reviewed-by: Bryan Mills Reviewed-by: Tobias Klauser --- unix/syscall_openbsd_mips64.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/syscall_openbsd_mips64.go b/unix/syscall_openbsd_mips64.go index 30f28534..1378489f 100644 --- a/unix/syscall_openbsd_mips64.go +++ b/unix/syscall_openbsd_mips64.go @@ -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) }