diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-27 23:28:09 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-27 23:28:09 +0000 |
commit | e39e9de5ea5b9aae014644fdf268e2667235807e (patch) | |
tree | bf6f9bf99fc8f60c2e44fd18ce0b17913443bc7c /libgo | |
parent | d80b680eba90329e89667f46fbe0cf5f8f777b1a (diff) | |
download | gcc-e39e9de5ea5b9aae014644fdf268e2667235807e.tar.gz |
mksysinfo: Always define IPV6_V6ONLY.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169343 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 321b4324584..af7b77a51df 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -133,6 +133,11 @@ grep '^const _SOMAXCONN' gen-sysinfo.go | grep '^const _SHUT_' gen-sysinfo.go | sed -e 's/^\(const \)_\(SHUT[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} +# The net package requires a definition for IPV6ONLY. +if ! grep '^const IPV6_V6ONLY ' ${OUT} >/dev/null 2>&1; then + echo "const IPV6_V6ONLY = 0" >> ${OUT} +fi + # pathconf constants. grep '^const __PC' gen-sysinfo.go | sed -e 's/^\(const \)__\(PC[^= ]*\)\(.*\)$/\1\2 = __\2/' >> ${OUT} |