From 22e18e55a4b3533d7f52fc50c55ac53ba5d3b025 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 29 Apr 2025 00:52:37 -0700 Subject: f2fs-tools: Fix build with gcc 15.1.0 --- ...-f2fs-tools-use-stdbool.h-instead-of-bool.patch | 39 ++++++++++++++++++++++ pkg/f2fs-tools/ver | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 pkg/f2fs-tools/patch/0003-f2fs-tools-use-stdbool.h-instead-of-bool.patch (limited to 'pkg') diff --git a/pkg/f2fs-tools/patch/0003-f2fs-tools-use-stdbool.h-instead-of-bool.patch b/pkg/f2fs-tools/patch/0003-f2fs-tools-use-stdbool.h-instead-of-bool.patch new file mode 100644 index 00000000..61c7c647 --- /dev/null +++ b/pkg/f2fs-tools/patch/0003-f2fs-tools-use-stdbool.h-instead-of-bool.patch @@ -0,0 +1,39 @@ +From 0ebcbf62ffd89f4d05c06290055f5a423017e151 Mon Sep 17 00:00:00 2001 +From: Jaegeuk Kim +Date: Thu, 24 Oct 2024 20:33:38 +0000 +Subject: [PATCH] f2fs-tools: use stdbool.h instead of bool + +The existing bool definition is broken for c23, where bool is now a keyword. + +Signed-off-by: Elliott Hughes +Signed-off-by: Jaegeuk Kim +--- + include/f2fs_fs.h | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h +index 4d99fb7..5b3760b 100644 +--- a/include/f2fs_fs.h ++++ b/include/f2fs_fs.h +@@ -17,6 +17,8 @@ + #include + #include + #include ++#include ++ + #ifdef HAVE_CONFIG_H + #include + #endif +@@ -74,9 +76,6 @@ typedef u_int16_t u16; + typedef u_int8_t u8; + typedef u32 block_t; + typedef u32 nid_t; +-#ifndef bool +-typedef u8 bool; +-#endif + typedef unsigned long pgoff_t; + typedef unsigned short umode_t; + +-- +2.49.0 + diff --git a/pkg/f2fs-tools/ver b/pkg/f2fs-tools/ver index e2e3bc21..0c1d553b 100644 --- a/pkg/f2fs-tools/ver +++ b/pkg/f2fs-tools/ver @@ -1 +1 @@ -1.14.0 r0 +1.14.0 r1 -- cgit v1.2.3