From 9195aa172bbc20627f23bfb1612180c83a0a7bab Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 19 Mar 2019 14:00:59 +0000 Subject: libgo: fix build on AIX Since aix/ppc64 has been added to GC toolchain, a mix between new and old files were created in gcc toolchain. This commit corrects this merge for aix/ppc64 and aix/ppc. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/167658 From-SVN: r269797 --- libgo/mksysinfo.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libgo/mksysinfo.sh') diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 418ba2cfdef..c9dd8d494a9 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -1024,6 +1024,18 @@ grep '^type _ifinfomsg ' gen-sysinfo.go | \ -e 's/ifi_change/Change/' \ >> ${OUT} +# The if_msghdr struct. +grep '^type _if_msghdr ' gen-sysinfo.go | \ + sed -e 's/_if_msghdr/IfMsgHdr/' \ + -e 's/ifm_msglen/Msglen/' \ + -e 's/ifm_version/Version/' \ + -e 's/ifm_type/Type/' \ + -e 's/ifm_addrs/Addrs/' \ + -e 's/ifm_flags/Flags/' \ + -e 's/ifm_index/Index/' \ + -e 's/ifm_addrlen/Addrlen/' \ + >> ${OUT} + # The interface information types and flags. grep '^const _IFA' gen-sysinfo.go | \ sed -e 's/^\(const \)_\(IFA[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} -- cgit v1.2.3