diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-09 11:13:49 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-09 11:13:49 +0000 |
commit | 6e8b08cfd91dbc16fd211f750e77f351e2cb738b (patch) | |
tree | 36b010fe68ce1e0ee92fc3a7ddccceeef4e5c561 /libgo | |
parent | 6b34a333d2e034341473e39191d15cde9ab5d389 (diff) | |
download | gcc-6e8b08cfd91dbc16fd211f750e77f351e2cb738b.tar.gz |
mksysinfo.sh: Fix handling of glibc 2.16 bits/resource.h.
From Jakub Jelinek.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189372 138bc75d-0d04-0410-961f-82ee72b054a4
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 6fe04039876..39553445d07 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/'` |