On 10/12/2011 07:30, Pau Garcia i Quiles wrote: > On Wed, Oct 12, 2011 at 12:53 AM, JonY <[email protected]> wrote: > >>> >> > [...] > >>> Am I doing something wrong? Is this a bug in MinGW-W64's implementation >> of >>> _FILE_OFFSET_BITS? >>> >> >> Yes, looks like I forgot the part about stat. Try this patch: >> >> Index: trunk/mingw-w64-headers/crt/_mingw_stat64.h >> =================================================================== >> --- trunk/mingw-w64-headers/crt/_mingw_stat64.h (revision 4539) >> +++ trunk/mingw-w64-headers/crt/_mingw_stat64.h (working copy) >> @@ -92,5 +92,10 @@ >> #define stat64 _stat64 /* for POSIX */ >> #define fstat64 _fstat64 /* for POSIX */ >> >> + >> +#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64) >> +#define stat _stat64 >> +#endif >> + >> #define _STAT_DEFINED >> #endif /* _STAT_DEFINED */ >> >> > This seems to fix it, thank you. >
Done as r4540 in trunk. > I've also noticed the mingw-w64 builds I tried have some other problem which > makes my application uncompilable, but I have not isolated the problem yet. > Meanwhile, I've gone back to slightly older builds. > You have to speak up, otherwise, nothing gets done.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
