Files
jellyfin-ffmpeg/msys2/PKGBUILD/10-mingw-w64-zlib/04-fix-largefile-support.patch
T

27 lines
756 B
Diff
Raw Normal View History

2026-05-28 10:55:08 +08:00
--- zlib-1.3.2.orig/zconf.h 2026-02-17 20:47:06.000000000 +0800
+++ zlib-1.3.2/zconf.h 2026-03-05 15:10:21.915014500 +0800
@@ -516,7 +516,7 @@
2024-07-08 16:09:04 +08:00
#endif
2026-05-28 10:55:08 +08:00
#ifndef z_off_t
-# define z_off_t long long
+# define z_off_t long
#endif
#if !defined(_WIN32) && defined(Z_LARGE64)
--- zlib-1.3.2.orig/zconf.h.in 2026-02-17 20:47:06.000000000 +0800
+++ zlib-1.3.2/zconf.h.in 2026-03-05 15:10:47.663570700 +0800
@@ -516,10 +516,10 @@
#endif
#ifndef z_off_t
-# define z_off_t long long
+# define z_off_t long
#endif
2024-07-08 16:09:04 +08:00
-#if !defined(_WIN32) && defined(Z_LARGE64)
+#if (defined(_WIN32) && defined(__GNUC__) && defined(_LARGEFILE64_SOURCE)) || defined(Z_LARGE64)
# define z_off64_t off64_t
2026-05-28 10:55:08 +08:00
#elif defined(__MINGW32__)
# define z_off64_t long long