File: 020_fix-ftbfs-with-gcc-10.patch

package info (click to toggle)
xblast-tnt 2.10.4-4.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,356 kB
  • sloc: ansic: 54,099; sh: 4,014; makefile: 129; sed: 16
file content (26 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (2)
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-10.
Author: Luis Paulo Linares <lpfllinares@gmail.com>
Bug-Debian: https://bugs.debian.org/957971

--- xblast-tnt-2.10.4.orig/cfg_control.h
+++ xblast-tnt-2.10.4/cfg_control.h
@@ -29,7 +29,7 @@
 #define NUM_KEYB_CONTROLS  2
 
 /* constant assignment of control to event type */
-const XBEventCode keyEventType[NUM_KEYB_CONTROLS];
+extern const XBEventCode keyEventType[NUM_KEYB_CONTROLS];
 
 /* ingame controls for editing*/
 typedef struct
--- xblast-tnt-2.10.4.orig/network.h
+++ xblast-tnt-2.10.4/network.h
@@ -105,7 +105,7 @@ typedef enum
 #define TEAM_UNDEF 252
 
 /* team color assignment */
-const XBColor teamColors[NUM_XBTS];
+extern const XBColor teamColors[NUM_XBTS];
 
 /* results of game config receive/create */
 typedef enum