[PATCH] x86_64/stat64: define struct stat64 as struct stat

Dmitry V. Levin ldv at altlinux.org
Wed Oct 10 12:35:40 UTC 2012


On Wed, Oct 10, 2012 at 12:59:43PM +0100, Markos Chandras wrote:
> From: Markos Chandras <markos.chandras at imgtec.com>
> 
> x86_64 does not define a struct stat64 in asm/stat.h. It uses
> struct stat instead.
> 
> This fixes a compilation problem when LFS is used
> 
> file.c:1073:16: error: storage size of ‘statbuf’ isn’t known

It means that, according to m4/long_long.m4, sizeof(off_t) > sizeof(long)
on this x86_64 system.  How could that be possible?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20121010/4f9e52e3/attachment.bin>


More information about the Strace-devel mailing list