logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0003-f2fs-tools-use-stdbool.h-instead-of-bool.patch (975B)


  1. From 0ebcbf62ffd89f4d05c06290055f5a423017e151 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. ---
  9. include/f2fs_fs.h | 5 ++---
  10. 1 file changed, 2 insertions(+), 3 deletions(-)
  11. diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
  12. index 4d99fb7..5b3760b 100644
  13. --- a/include/f2fs_fs.h
  14. +++ b/include/f2fs_fs.h
  15. @@ -17,6 +17,8 @@
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include <string.h>
  19. +#include <stdbool.h>
  20. +
  21. #ifdef HAVE_CONFIG_H
  22. #include <config.h>
  23. #endif
  24. @@ -74,9 +76,6 @@ typedef u_int16_t u16;
  25. typedef u_int8_t u8;
  26. typedef u32 block_t;
  27. typedef u32 nid_t;
  28. -#ifndef bool
  29. -typedef u8 bool;
  30. -#endif
  31. typedef unsigned long pgoff_t;
  32. typedef unsigned short umode_t;
  33. --
  34. 2.49.0