forked from mirrors/gecko-dev
Bug 1561636 - intermittent updater failures on Win64 (Error 19) r=rstrong
Avoid MinGW's _ftelli64() and _fseeki64() implementations because they are unreliable. Differential Revision: https://phabricator.services.mozilla.com/D36037 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5b135c7bdb
commit
2bc2db8906
1 changed files with 7 additions and 0 deletions
|
|
@ -55,8 +55,15 @@ MOZ_STATIC_ASSERT(sizeof(BLOCKSIZE) <
|
||||||
instead of the NSPR equivalents. */
|
instead of the NSPR equivalents. */
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
/* Avoid MinGW's _ftelli64() and _fseeki64() implementations because they
|
||||||
|
* are unreliable. */
|
||||||
|
#define ftello ftello64
|
||||||
|
#define fseeko fseeko64
|
||||||
|
#else
|
||||||
#define ftello _ftelli64
|
#define ftello _ftelli64
|
||||||
#define fseeko _fseeki64
|
#define fseeko _fseeki64
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue