File: 42_plotutils-gcc15.patch

package info (click to toggle)
plotutils 2.6-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,040 kB
  • sloc: ansic: 68,670; sh: 20,086; cpp: 12,382; yacc: 2,588; makefile: 838; lex: 137
file content (37 lines) | stat: -rw-r--r-- 1,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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