Message ID | mcrsjeaxqzq.fsf@dhcp-172-18-216-180.mtv.corp.google.com |
---|---|
State | New |
Headers | show |
diff -r 292e3c15944d libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh Sun Jun 03 22:32:46 2012 -0700 +++ b/libgo/mksysinfo.sh Mon Jun 04 22:29:50 2012 -0700 @@ -524,6 +524,8 @@ if test "$rusage" != ""; then rusage=`echo $rusage | sed -e 's/type _rusage struct //' -e 's/[{}]//g'` rusage=`echo $rusage | sed -e 's/^ *//'` + # Remove anonymous unions from GNU/Linux <bits/resource.h>. + rusage=`echo $rusage | sed -e 's/Godump_[0-9]* struct {\([^}]*\)};/\1/g'` nrusage= while test -n "$rusage"; do field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'`