aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-06-05 05:32:54 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-06-05 05:32:54 +0000
commit70b9f51628c32d91a451ff6616f675d5a738413b (patch)
tree1a26e7c7f10763a572d719e39b8fcfd55173707f
parentc11965508b07cee14109df2533235a3992ff5c8e (diff)
downloadgcc-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-xlibgo/mksysinfo.sh2
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/'`