Commit 70b9f516 by Ian Lance Taylor

mksysinfo: Fix for recent change to glibc <sys/resource.h>.

From-SVN: r188228
parent c1196550
......@@ -524,6 +524,8 @@ rusage=`grep '^type _rusage struct' gen-sysinfo.go`
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/'`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment