File: gcc-15.patch

package info (click to toggle)
cpu 1.4.3-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,668 kB
  • sloc: sh: 7,522; ansic: 7,395; makefile: 117
file content (17 lines) | stat: -rw-r--r-- 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix FTBFS with GCC 15
Author: Andreas Beckmann <anbe@debian.org>

--- a/src/include/conf.h
+++ b/src/include/conf.h
@@ -67,9 +67,11 @@ extern "C" {
     { "verbose", 0, 0, 'v' }, \
     { "version", 0, 0, 'V' }
 
+#if __STDC_VERSION__ < 202311L
 typedef int bool;
 #define true 1
 #define false 0
+#endif
 
 #ifdef DEBUG
 #define CTEST() fprintf(stderr, "%s: %d\n", __FILE__, __LINE__)