aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-08-31 20:07:55 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-08-31 20:07:55 +0000
commitf522b07d8dc5c46683a5ef6b283e4fa9749bbb63 (patch)
tree561e076fa75354ff45d96553d611df189432ac36 /libgo
parent611e70369c70bca11362ef0f4fe449282f6ed928 (diff)
downloadgcc-f522b07d8dc5c46683a5ef6b283e4fa9749bbb63.zip
gcc-f522b07d8dc5c46683a5ef6b283e4fa9749bbb63.tar.gz
gcc-f522b07d8dc5c46683a5ef6b283e4fa9749bbb63.tar.bz2
mksysinfo: fix in6_addr in mld_hdr_t for Solaris
Patch by Rainer Orth. Reviewed-on: https://go-review.googlesource.com/60732 From-SVN: r251574
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mkrsysinfo.sh4
-rwxr-xr-xlibgo/mksysinfo.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/libgo/mkrsysinfo.sh b/libgo/mkrsysinfo.sh
index 6ab80e6..44a3a6b 100755
--- a/libgo/mkrsysinfo.sh
+++ b/libgo/mkrsysinfo.sh
@@ -36,6 +36,10 @@ grep -v '^// ' gen-sysinfo.go | \
grep '^type _arpcom ' gen-sysinfo.go | \
sed -e 's/_in6_addr/[16]byte/' >> ${OUT}
+# Same on Solaris for _mld_hdr_t.
+grep '^type _mld_hdr_t ' gen-sysinfo.go | \
+ sed -e 's/_in6_addr/[16]byte/' >> ${OUT}
+
# The time structures need special handling: we need to name the
# types, so that we can cast integers to the right types when
# assigning to the structures.
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 7a74269..54978b9 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -48,6 +48,10 @@ grep -v '^// ' gen-sysinfo.go | \
grep '^type _arpcom ' gen-sysinfo.go | \
sed -e 's/_in6_addr/[16]byte/' >> ${OUT}
+# Same on Solaris for _mld_hdr_t.
+grep '^type _mld_hdr_t ' gen-sysinfo.go | \
+ sed -e 's/_in6_addr/[16]byte/' >> ${OUT}
+
# The errno constants. These get type Errno.
egrep '#define E[A-Z0-9_]+ ' errno.i | \
sed -e 's/^#define \(E[A-Z0-9_]*\) .*$/const \1 = Errno(_\1)/' >> ${OUT}