From f32f4641906bc6f4c48aaea51d2a7a1a0a95df3f Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Fri, 18 Apr 2025 15:51:09 +0300 Subject: [PATCH] iscsi-scstd: Fix redefinition of bool when building with GCC 15 GCC 15 (C23) now reserves bool/true/false, so the local typedef in iscsid.d breaks the build: error: cannot use keyword 'false' as enumeration constant error: expected ';', identifier or '(' before 'bool' Include and drop the typedef. --- iscsi-scst/usr/iscsid.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/iscsi-scst/usr/iscsid.h b/iscsi-scst/usr/iscsid.h index b3beb3a76..63ffab278 100644 --- a/iscsi-scst/usr/iscsid.h +++ b/iscsi-scst/usr/iscsid.h @@ -23,6 +23,7 @@ #include #include #include +#include #include "types.h" #ifdef INSIDE_KERNEL_TREE @@ -36,10 +37,6 @@ #include "param.h" #include "misc.h" -#ifndef bool -typedef enum {false = 0, true} bool; -#endif - #define sBUG() assert(0) #define sBUG_ON(p) assert(!(p))