diff options
Diffstat (limited to 'games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch')
-rw-r--r-- | games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch b/games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch new file mode 100644 index 000000000000..7d69c705e0c8 --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-5.6.5-gcc10.patch @@ -0,0 +1,30 @@ +Author: Reiner Herrmann <reiner@reiner-h.de> +Description: Fix FTBFS with GCC 10 +Bug-Debian: https://bugs.debian.org/957493 + +--- a/src/fighter.h ++++ b/src/fighter.h +@@ -59,8 +59,8 @@ + /* variables globales */ + /*==================================================================*/ + +-int FIGHTER_MOVE_X[2][NB_DIRS][5]; +-int FIGHTER_MOVE_Y[2][NB_DIRS][5]; ++extern int FIGHTER_MOVE_X[2][NB_DIRS][5]; ++extern int FIGHTER_MOVE_Y[2][NB_DIRS][5]; + + /*==================================================================*/ + /* fonctions globales */ +--- a/src/random.h ++++ b/src/random.h +@@ -66,8 +66,8 @@ + /* variables globales */ + /*==================================================================*/ + +-void *LW_RANDOM_RAW_MAP; +-int LW_RANDOM_ON; ++extern void *LW_RANDOM_RAW_MAP; ++extern int LW_RANDOM_ON; + + /*==================================================================*/ + /* fonctions globales */ |