From bbd175535a8b9969bb0b33f1502f681ee0b122bd Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 9 Sep 2019 10:29:45 +0200 Subject: [PATCH] unix: add Msghdr.SetIovlen for solaris/amd64 Follow-up for CL 194077 Updates golang/go#34164 Change-Id: I4bf670dc3e13c483e9087dc3f04973278a09b2f4 Reviewed-on: https://go-review.googlesource.com/c/sys/+/194099 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Matt Layher Reviewed-by: Ian Lance Taylor --- unix/syscall_solaris_amd64.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/syscall_solaris_amd64.go b/unix/syscall_solaris_amd64.go index 91c32ddf..b22a34d7 100644 --- a/unix/syscall_solaris_amd64.go +++ b/unix/syscall_solaris_amd64.go @@ -18,6 +18,10 @@ func (iov *Iovec) SetLen(length int) { iov.Len = uint64(length) } +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + func (cmsg *Cmsghdr) SetLen(length int) { cmsg.Len = uint32(length) }