File: gcc-15.patch

package info (click to toggle)
sjeng 11.2-15.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,444 kB
  • sloc: ansic: 13,378; sh: 324; makefile: 29
file content (26 lines) | stat: -rw-r--r-- 584 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
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1097888

--- sjeng-11.2.orig/sjeng.h
+++ sjeng-11.2/sjeng.h
@@ -27,6 +27,7 @@
 #include "config.h"
 #include <ctype.h>
 #include <signal.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -99,9 +100,8 @@
 #define diagl(square) (diagl[(square)])
 #define diagr(square) (diagr[(square)])
 
-#ifndef INPROBECODE
-typedef enum {FALSE, TRUE} bool;
-#endif
+#define TRUE true
+#define FALSE false
 
 /* castle flags: */
 #define no_castle  0