summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-25 22:54:24 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-25 22:54:24 +0000
commit72926fdf95977fe2dd0287e41e03fcc714b348b4 (patch)
tree0521ef4ae9f31f77db37d80f330b89dabb2acf64
parent47d27908cfb9b5967a45b25105bf9b55d4a9f6ca (diff)
downloadgcc-72926fdf95977fe2dd0287e41e03fcc714b348b4.tar.gz
syscall: Set SizeofSockaddrAny to the value the go distribution uses
In particular this means that the names Getsockname returns are not truncated to 26 characters. Fixes issue 6829 https://codereview.appspot.com/31840043/ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@205369 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libgo/go/syscall/socket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/syscall/socket.go b/libgo/go/syscall/socket.go
index cc98d6b79fd..4a80a4cdb1a 100644
--- a/libgo/go/syscall/socket.go
+++ b/libgo/go/syscall/socket.go
@@ -25,7 +25,7 @@ type RawSockaddrAny struct {
Pad [96]int8
}
-const SizeofSockaddrAny = 0x1c
+const SizeofSockaddrAny = 0x6c
type SockaddrInet4 struct {
Port int