Description: Fix Gcc 15 FTBFS
Origin: vendor, https://build.opensuse.org/projects/openSUSE:Factory/packages/plotutils/files/plotutils-gcc15.patch?expand=1
Bug: https://lists.gnu.org/archive/html/bug-plotutils/2025-05/msg00000.html
Bug-Debian: https://bugs.debian.org/1097620
Forwarded: https://lists.gnu.org/archive/html/bug-plotutils/2025-05/msg00001.html
Last-Update: 2025-05-31

--- a/include/sys-defines.h
+++ b/include/sys-defines.h
@@ -253,11 +253,11 @@ extern __C_LINKAGE void free (void * ptr
 /* Support the `bool' datatype, which is used widely in this package.     */
 /**************************************************************************/
 
 #ifndef __cplusplus
 #ifdef __STDC__
-typedef enum { false = 0, true = 1 } bool;
+# include <stdbool.h>
 #else  /* not __STDC__, do things the old-fashioned way */
 typedef int bool;
 #define false 0
 #define true 1
 #endif /* not __STDC__ */
--- a/libxmi/sys-defines.h
+++ b/libxmi/sys-defines.h
@@ -167,11 +167,11 @@ extern __C_LINKAGE void free (void * ptr
 /**************************************************************************/
 
 #ifndef __cplusplus
 #ifndef HAVE_BOOL_IN_CC
 #ifdef __STDC__
-typedef enum { false = 0, true = 1 } bool;
+# include <stdbool.h>
 #else  /* not __STDC__, do things the old-fashioned way */
 typedef int bool;
 #define false 0
 #define true 1
 #endif
