diff options
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 6fe0403..3955344 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -522,10 +522,10 @@ grep '^const _DT_' gen-sysinfo.go | # The rusage struct. 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'` + rusage=`echo $rusage | sed -e 's/type _rusage struct //' -e 's/[{}]//g'` + rusage=`echo $rusage | sed -e 's/^ *//'` nrusage= while test -n "$rusage"; do field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'` |