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
This commit is contained in:
Ian Lance Taylor 2017-08-31 20:07:55 +00:00
parent 611e70369c
commit f522b07d8d
3 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
5674b5927d5336e20fbec455a9f7b0b8ed70166c 9d0d5c03a8086f5dd3a23e910abd6e470196973c
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.

View File

@ -36,6 +36,10 @@ grep -v '^// ' gen-sysinfo.go | \
grep '^type _arpcom ' gen-sysinfo.go | \ grep '^type _arpcom ' gen-sysinfo.go | \
sed -e 's/_in6_addr/[16]byte/' >> ${OUT} 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 # The time structures need special handling: we need to name the
# types, so that we can cast integers to the right types when # types, so that we can cast integers to the right types when
# assigning to the structures. # assigning to the structures.

View File

@ -48,6 +48,10 @@ grep -v '^// ' gen-sysinfo.go | \
grep '^type _arpcom ' gen-sysinfo.go | \ grep '^type _arpcom ' gen-sysinfo.go | \
sed -e 's/_in6_addr/[16]byte/' >> ${OUT} 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. # The errno constants. These get type Errno.
egrep '#define E[A-Z0-9_]+ ' errno.i | \ egrep '#define E[A-Z0-9_]+ ' errno.i | \
sed -e 's/^#define \(E[A-Z0-9_]*\) .*$/const \1 = Errno(_\1)/' >> ${OUT} sed -e 's/^#define \(E[A-Z0-9_]*\) .*$/const \1 = Errno(_\1)/' >> ${OUT}