commit | f75cf1eec38b84b5cea42a93335150a532c7c75e | [log] [tgz] |
---|---|---|
author | Joel Sing <joel@sing.id.au> | Tue Jun 28 04:16:01 2022 +1000 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Mon Jun 27 19:12:45 2022 +0000 |
tree | 6863713e1b4999ec077b9186305aeb4bac93ffa9 | |
parent | 87e55d71481061dc6dcfb9a4953c896af893c130 [diff] |
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>
diff --git a/unix/syscall_openbsd_mips64.go b/unix/syscall_openbsd_mips64.go index 30f2853..1378489 100644 --- a/unix/syscall_openbsd_mips64.go +++ b/unix/syscall_openbsd_mips64.go
@@ -26,6 +26,10 @@ msghdr.Controllen = uint32(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) }