]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix linux/arm build
authorRuss Cox <rsc@golang.org>
Wed, 8 Dec 2010 19:31:46 +0000 (14:31 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Dec 2010 19:31:46 +0000 (14:31 -0500)
bug introduced at
https://golang.org/cl/2331044

R=ken2
CC=golang-dev
https://golang.org/cl/3440046

src/pkg/syscall/syscall_linux_arm.go

index bc6592f156c3f28d84b656a79ee73e1488fb2543..00ab24f68e0d9e02d095a13811336fdceced6de5 100644 (file)
@@ -98,3 +98,15 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, errno int)
 func (r *PtraceRegs) PC() uint64 { return 0 }
 
 func (r *PtraceRegs) SetPC(pc uint64) {}
+
+func (iov *Iovec) SetLen(length int) {
+       iov.Len = uint32(length)
+}
+
+func (msghdr *Msghdr) SetControllen(length int) {
+       msghdr.Controllen = uint32(length)
+}
+
+func (cmsg *Cmsghdr) SetLen(length int) {
+       cmsg.Len = uint32(length)
+}