On Tue, Nov 8, 2011 at 10:39 AM, Mark Dootson <[email protected]> wrote:
> Hi,
>
> I have been trying to compile binutils natively using
> mingw-w64-stable-2.x-r4587. Original release 2.0 worked OK. After much
> hair pulling, I realised the answer was the binutils code doesn't yet
> cope with availability of _FILE_OFFEST_BITS on mingw so I just pass
> --disable-largefile to configure.
>
> During the hair pulling I tried to follow the recent changes applied to
> stable around large file support and time.
>
> Does the following patch from JonY, originally added as r4540, need
> reapplying? It's absence causes no problems for me - but it looks like
> it should be there.

That patch has not been reverted from v2.x, it is there.
If you reverted it on your own copies, we'd like to know
what problems it caused for you.

>
> Rgds
>
> Mark
>
> --- mingw-w64-headers/crt/_mingw_stat64.h
> +++ mingw-w64-headers/crt/_mingw_stat64.h
> @@ -92,5 +92,9 @@
>  #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 */

--
O.S.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to