File: gcc10.patch

package info (click to toggle)
xboard 4.9.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,716 kB
  • sloc: ansic: 58,265; sh: 4,672; makefile: 301; perl: 161; xml: 67; sed: 16
file content (26 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
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
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix FTBFS with GCC 10
Bug-Debian: https://bugs.debian.org/957972

--- a/backend.h
+++ b/backend.h
@@ -242,7 +242,7 @@
 
 /* ICS vars used with backend.c and zippy.c */
 enum ICS_TYPE { ICS_GENERIC, ICS_ICC, ICS_FICS, ICS_CHESSNET /* not really supported */ };
-enum ICS_TYPE ics_type;
+extern enum ICS_TYPE ics_type;
 
 /* pgntags.c prototypes
  */
--- a/evalgraph.h
+++ b/evalgraph.h
@@ -34,7 +34,7 @@
 #define OPEN   0
 
 /* Module globals */
-ChessProgramStats_Move * currPvInfo;
+extern ChessProgramStats_Move * currPvInfo;
 extern int currFirst;
 extern int currLast;
 extern int currCurrent;