summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-25 22:54:05 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-25 22:54:05 +0000
commitf58871e3d3e953ede996729ebd541268ac5eda8a (patch)
treeac17617d8675238b05dbea412974802c975501ee /libgo
parent03e3d24bbc410570a70e144bdeb5026f4cf36c6a (diff)
downloadgcc-f58871e3d3e953ede996729ebd541268ac5eda8a.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/trunk@205368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-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 29c70559cce..f4dba36908e 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