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:
Kathy Brade 2019-06-27 09:11:48 +00:00
Родитель 5b135c7bdb
Коммит 2bc2db8906
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -55,8 +55,15 @@ MOZ_STATIC_ASSERT(sizeof(BLOCKSIZE) <
instead of the NSPR equivalents. */
#ifdef XP_WIN
#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 fseeko _fseeki64
#endif
#else
#define _FILE_OFFSET_BITS 64
#include <netinet/in.h>