Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 4 Mar 2014 07:33:49 +0200
From: Paul Schutte <sjpschutte@...il.com>
To: musl@...ts.openwall.com
Subject: Re: stat.h

Thanks


On Tue, Mar 4, 2014 at 7:31 AM, Rich Felker <dalias@...ifal.cx> wrote:

> On Tue, Mar 04, 2014 at 07:18:05AM +0200, Paul Schutte wrote:
> > Hi
> >
> > Hope I am not too anoying ... ;-)
> >
> > I have tried both _GNU_SOURCE and _LARGEFILE64_SOURCE and in neither case
> > do I get a definition for 'struct stat64'
> >
> > If I understand correctly then source using 'struct stat64' should be
> fixed
> > to use 'struct stat' instead ?
> > If this is not correct, then 'struct stat64' should probably be added to
> > <sys/stat.h> as only the following are defined there:
> >
> > #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
> > #define stat64 stat
>
> This defines "struct stat64", which the preprocessor replaces with
> "struct stat". If that's not working it's because the source file is
> doing something bogus (like #undef stat64, perhaps).
>
> In any case, just fixing the source to use "stat" instead of "stat64"
> (and likewise for any other *64 mess) is the best approach.
>
> Rich
>

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.