On Wed, Oct 12, 2011 at 7:30 AM, Pau Garcia i Quiles
<[email protected]>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.
>
> I've also noticed the mingw-w64 builds I tried have some other problem
> which makes my application uncompilable,

You can point out what the compile problem is.


> but I have not isolated the problem yet. Meanwhile, I've gone back to
> slightly older builds.
>
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
>
>
> ------------------------------------------------------------------------------
> 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
>
>


-- 
Best Regards,
xunxun
------------------------------------------------------------------------------
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

Reply via email to