aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-07-09 11:13:49 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-07-09 11:13:49 +0000
commit5ede5aa54eb41267399a109b86e3a0fd873f7583 (patch)
tree36b010fe68ce1e0ee92fc3a7ddccceeef4e5c561 /libgo
parentb7f7dab274fb75af9c070d1aaf8630180343db50 (diff)
downloadgcc-5ede5aa54eb41267399a109b86e3a0fd873f7583.zip
gcc-5ede5aa54eb41267399a109b86e3a0fd873f7583.tar.gz
gcc-5ede5aa54eb41267399a109b86e3a0fd873f7583.tar.bz2
mksysinfo.sh: Fix handling of glibc 2.16 bits/resource.h.
From Jakub Jelinek. From-SVN: r189372
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh4
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/'`