mirror of git://gcc.gnu.org/git/gcc.git
libgo/mksysinfo: Always define IPV6_TCLASS.
From-SVN: r183552
This commit is contained in:
parent
70a3ffe8c7
commit
2887732181
|
@ -192,7 +192,7 @@ grep '^const _SHUT_' gen-sysinfo.go |
|
||||||
sed -e 's/^\(const \)_\(SHUT[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
sed -e 's/^\(const \)_\(SHUT[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
|
||||||
|
|
||||||
# The net package requires some const definitions.
|
# The net package requires some const definitions.
|
||||||
for m in IPV6_V6ONLY IPPROTO_IPV6 IPV6_JOIN_GROUP IPV6_LEAVE_GROUP; do
|
for m in IPV6_V6ONLY IPPROTO_IPV6 IPV6_JOIN_GROUP IPV6_LEAVE_GROUP IPV6_TCLASS; do
|
||||||
if ! grep "^const $m " ${OUT} >/dev/null 2>&1; then
|
if ! grep "^const $m " ${OUT} >/dev/null 2>&1; then
|
||||||
echo "const $m = 0" >> ${OUT}
|
echo "const $m = 0" >> ${OUT}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue