summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-27 23:28:09 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-27 23:28:09 +0000
commite39e9de5ea5b9aae014644fdf268e2667235807e (patch)
treebf6f9bf99fc8f60c2e44fd18ce0b17913443bc7c /libgo
parentd80b680eba90329e89667f46fbe0cf5f8f777b1a (diff)
downloadgcc-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-xlibgo/mksysinfo.sh5
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}