diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-06-05 05:32:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-06-05 05:32:54 +0000 |
commit | 70b9f51628c32d91a451ff6616f675d5a738413b (patch) | |
tree | 1a26e7c7f10763a572d719e39b8fcfd55173707f | |
parent | c11965508b07cee14109df2533235a3992ff5c8e (diff) | |
download | gcc-70b9f51628c32d91a451ff6616f675d5a738413b.zip gcc-70b9f51628c32d91a451ff6616f675d5a738413b.tar.gz gcc-70b9f51628c32d91a451ff6616f675d5a738413b.tar.bz2 |
mksysinfo: Fix for recent change to glibc <sys/resource.h>.
From-SVN: r188228
-rwxr-xr-x | libgo/mksysinfo.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 655337f..6fe0403 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -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/'` |