[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hurd port for gcc go PATCH 7-9 (9)
From: |
Samuel Thibault |
Subject: |
Re: Hurd port for gcc go PATCH 7-9 (9) |
Date: |
Mon, 14 Apr 2014 11:03:02 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Svante Signell, le Mon 14 Apr 2014 09:59:03 +0200, a écrit :
> > > @@ -528,6 +538,8 @@
> > >
> > > # The stat type.
> > > # Prefer largefile variant if available.
> > > +# Special treatment of st_dev for GNU/Hurd
> > > +# /usr/include/i386-gnu/bits/stat.h: #define st_dev st_fsid
> > > stat=`grep '^type _stat64 ' gen-sysinfo.go || true`
> > > if test "$stat" != ""; then
> > > grep '^type _stat64 ' gen-sysinfo.go
> > > @@ -536,6 +548,7 @@
> > > fi | sed -e 's/type _stat64/type Stat_t/' \
> > > -e 's/type _stat/type Stat_t/' \
> > > -e 's/st_dev/Dev/' \
> > > + -e 's/st_fsid/Dev/' \
> > > -e 's/st_ino/Ino/g' \
> > > -e 's/st_nlink/Nlink/' \
> > > -e 's/st_mode/Mode/' \
>
> Don't know if any other system defines st_fsid as st_dev like Hurd does.
> If not this one would be fine too?
I don't know any other system doing it, but a sed rule can't hurt even
if there is no occurrence...
Samuel