mksysinfo: Always define IPV6_V6ONLY.

From-SVN: r169343
This commit is contained in:
Ian Lance Taylor 2011-01-27 23:28:09 +00:00
parent 24d6250f98
commit 75d0b39856
1 changed files with 5 additions and 0 deletions

View File

@ -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}