From: Gleb C. <lna...@ya...> - 2025-04-18 15:55:13
|
Commit: f32f464 GitHub URL: https://github.com/SCST-project/scst/commit/f32f4641906bc6f4c48aaea51d2a7a1a0a95df3f Author: Gleb Chesnokov Date: 2025-04-18T18:54:20+03:00 Log Message: ----------- 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 <stdbool.h> and drop the typedef. Modified Paths: -------------- 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 b3beb3a..63ffab2 100644 --- a/iscsi-scst/usr/iscsid.h +++ b/iscsi-scst/usr/iscsid.h @@ -23,6 +23,7 @@ #include <assert.h> #include <netdb.h> #include <syslog.h> +#include <stdbool.h> #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)) |