projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d6250
)
mksysinfo: Always define IPV6_V6ONLY.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 27 Jan 2011 23:28:09 +0000
(23:28 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Thu, 27 Jan 2011 23:28:09 +0000
(23:28 +0000)
From-SVN: r169343
libgo/mksysinfo.sh
patch
|
blob
|
history
diff --git
a/libgo/mksysinfo.sh
b/libgo/mksysinfo.sh
index 321b43245841ef1433fcffbd43c9844c4a2bf084..af7b77a51df6b937483bb0caecbdb6e6e088a62a 100755
(executable)
--- 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}