0002-f2fs-tools-use-stdbool.h-instead-of-bool.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From ec0f9d07792298f89e71cee1e692ad60bf6b8d5c Mon Sep 17 00:00:00 2001
  2. From: Jaegeuk Kim <jaegeuk@kernel.org>
  3. Date: Thu, 24 Oct 2024 20:33:38 +0000
  4. Subject: [PATCH] f2fs-tools: use stdbool.h instead of bool
  5. The existing bool definition is broken for c23, where bool is now a keyword.
  6. Signed-off-by: Elliott Hughes <enh@google.com>
  7. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  8. Upstream: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?id=6617d15a660becc23825007ab3fc2d270b5b250f
  9. [Florian: rebased to 1.16.0]
  10. Signed-off-by: Florian Larysch <fl@n621.de>
  11. ---
  12. include/f2fs_fs.h | 4 +---
  13. 1 file changed, 1 insertion(+), 3 deletions(-)
  14. diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
  15. index f890634..a968380 100644
  16. --- a/include/f2fs_fs.h
  17. +++ b/include/f2fs_fs.h
  18. @@ -26,6 +26,7 @@
  19. #include <stddef.h>
  20. #include <string.h>
  21. #include <time.h>
  22. +#include <stdbool.h>
  23. #ifdef HAVE_CONFIG_H
  24. #include <config.h>
  25. @@ -103,9 +104,6 @@ typedef uint16_t u16;
  26. typedef uint8_t u8;
  27. typedef u32 block_t;
  28. typedef u32 nid_t;
  29. -#ifndef bool
  30. -typedef u8 bool;
  31. -#endif
  32. typedef unsigned long pgoff_t;
  33. typedef unsigned short umode_t;
  34. --
  35. 2.49.0