slackware-current/source/a/f2fs-tools/f2fs.ftbfs.diff
Patrick J Volkerding 9b906307de Mon Oct 17 00:42:43 UTC 2022
a/gettext-0.21.1-x86_64-1.txz:  Upgraded.
a/glibc-zoneinfo-2022e-noarch-1.txz:  Upgraded.
  This package provides the latest timezone updates.
d/gettext-tools-0.21.1-x86_64-1.txz:  Upgraded.
l/imagemagick-7.1.0_51-x86_64-1.txz:  Upgraded.
2022-10-17 07:00:20 +02:00

17 lines
813 B
Diff

diff -aurN f2fs-tools-1.15.0/fsck/compress.c f2fs-tools-1.15.0-mod/fsck/compress.c
--- f2fs-tools-1.15.0/fsck/compress.c 2022-05-13 19:50:41.000000000 +0200
+++ f2fs-tools-1.15.0-mod/fsck/compress.c 2022-08-19 12:15:48.037589094 +0200
@@ -32,10 +32,10 @@
#ifdef HAVE_LIBLZ4
#define LZ4_MEMORY_USAGE 14
#define LZ4_MAX_INPUT_SIZE 0x7E000000 /* 2 113 929 216 bytes */
-#ifndef LZ4_STREAMSIZE
-#define LZ4_STREAMSIZE (LZ4_STREAMSIZE_U64 * sizeof(long long))
+#ifndef LZ4_STREAM_MINSIZE
+#define LZ4_STREAM_MINSIZE ((1UL << LZ4_MEMORY_USAGE) + 32) /* static size, for inter-version compatibility */
#endif
-#define LZ4_MEM_COMPRESS LZ4_STREAMSIZE
+#define LZ4_MEM_COMPRESS LZ4_STREAM_MINSIZE
#define LZ4_ACCELERATION_DEFAULT 1
#define LZ4_WORK_SIZE ALIGN_UP(LZ4_MEM_COMPRESS, 8)
#endif