diff --git a/deps/zlib/zlib.gyp b/deps/zlib/zlib.gyp index 25bcc74a03..fac801c7cb 100644 --- a/deps/zlib/zlib.gyp +++ b/deps/zlib/zlib.gyp @@ -27,7 +27,11 @@ 'crc32.h', 'deflate.c', 'deflate.h', - 'gzio.c', + 'gzclose.c', + 'gzguts.h', + 'gzlib.c', + 'gzread.c', + 'gzwrite.c', 'infback.c', 'inffast.c', 'inffast.h', @@ -36,7 +40,6 @@ 'inflate.h', 'inftrees.c', 'inftrees.h', - 'mozzconf.h', 'trees.c', 'trees.h', 'uncompr.c', @@ -63,6 +66,14 @@ 'contrib/minizip/iowin32.c' ], }], + ['OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="android"', { + # Mac, Android and the BSDs don't have fopen64, ftello64, or + # fseeko64. We use fopen, ftell, and fseek instead on these + # systems. + 'defines': [ + 'USE_FILE32API' + ], + }], ], }, ],