Thanks


On Tue, Mar 4, 2014 at 7:31 AM, Rich Felker <dalias@aerifal.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