diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-25 22:54:05 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-25 22:54:05 +0000 |
commit | f58871e3d3e953ede996729ebd541268ac5eda8a (patch) | |
tree | ac17617d8675238b05dbea412974802c975501ee /libgo | |
parent | 03e3d24bbc410570a70e144bdeb5026f4cf36c6a (diff) | |
download | linaro-gcc-f58871e3d3e953ede996729ebd541268ac5eda8a.tar.gz linaro-gcc-f58871e3d3e953ede996729ebd541268ac5eda8a.tar.bz2 linaro-gcc-f58871e3d3e953ede996729ebd541268ac5eda8a.zip |
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.go | 2 |
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 |