f2fs-tools: backport upstream C23 fix

Without the change the build against c23 compiler (like `gcc-15`) fails as:

    f2fs-tools> In file included from libf2fs_zoned.c:10:
    f2fs-tools> ../include/f2fs_fs.h:107:25: error: two or more data types in declaration specifiers
    f2fs-tools>   107 | typedef u8              bool;
    f2fs-tools>       |                         ^~~~
This commit is contained in:
Sergei Trofimovich 2025-01-26 22:31:06 +00:00
parent bafca6cbe1
commit 558314344f

View file

@ -39,6 +39,13 @@ stdenv.mkDerivation rec {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/patch/?id=b15b6cc56ac7764be17acbdbf96448f388992adc";
hash = "sha256-9XrNf9MMMDGOsuP3DvUhm30Sa2xICDtXbUIvM/TP35o=";
})
# Fix the build against C23 compilers (like gcc-15):
(fetchpatch {
name = "c23.patch";
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/patch/?id=6617d15a660becc23825007ab3fc2d270b5b250f";
hash = "sha256-XgceNqwCDa5m9CJTQCmjfiDhZ7x/rO+UiBZwrovgywA=";
})
];
enableParallelBuilding = true;