1 Commits

Author SHA256 Message Date
9a5b8451a9 Add c23.patch 2025-06-17 12:14:09 +02:00
3 changed files with 47 additions and 3 deletions

38
c23.patch Normal file
View File

@@ -0,0 +1,38 @@
From 6617d15a660becc23825007ab3fc2d270b5b250f Mon Sep 17 00:00:00 2001
From: Jaegeuk Kim <jaegeuk@kernel.org>
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 <enh@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
include/f2fs_fs.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index 9534da9..0cb9228 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -28,6 +28,7 @@
#include <stddef.h>
#include <string.h>
#include <time.h>
+#include <stdbool.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -119,9 +120,6 @@ typedef uint16_t u16;
typedef uint8_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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 17 10:12:38 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Add c23.patch
-------------------------------------------------------------------
Mon Sep 11 07:28:22 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package f2fs-tools
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,7 @@ License: GPL-2.0-only AND LGPL-2.1-only
Group: System/Filesystems
URL: https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
Source: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-%version.tar.gz
Patch1: c23.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
@@ -98,8 +99,8 @@ done
cp -a include/f2fs_fs.h mkfs/f2fs_format_utils.h \
"%buildroot/%_includedir/"
%ldconfig -n libf2fs%libf2_so_ver
%ldconfig -n libf2fs_format%libf2_format_so_ver
%ldconfig_scriptlets -n libf2fs%libf2_so_ver
%ldconfig_scriptlets -n libf2fs_format%libf2_format_so_ver
%files
%license COPYING