summaryrefslogtreecommitdiffstats
path: root/source/a/f2fs-tools/f2fs.ftbfs.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/f2fs-tools/f2fs.ftbfs.diff')
-rw-r--r--source/a/f2fs-tools/f2fs.ftbfs.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/a/f2fs-tools/f2fs.ftbfs.diff b/source/a/f2fs-tools/f2fs.ftbfs.diff
new file mode 100644
index 000000000..b628e962e
--- /dev/null
+++ b/source/a/f2fs-tools/f2fs.ftbfs.diff
@@ -0,0 +1,17 @@
+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