Description: Fix ftbfs with GCC-10

Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Bug-Debian: https://bugs.debian.org/957981
Forwarded: no

---

--- xgammon-0.99.1128.orig/src/allow.c
+++ xgammon-0.99.1128/src/allow.c
@@ -42,6 +42,12 @@ void print_possible_moves  (void);
 
 extern void                AppendMoveString ();
 extern int                 have_to_hit      ();
+struct  _PinTable Pin[29], rollout_position[29];
+struct _Tournament tournament;
+struct _RolloutSave rollout_save;
+struct _Player Player[2];
+FILE *endgame_database;
+MOVE possible_moves[8000], *list;
 
 #define OFF_BOARD ((turn==BLACK) ? i+w[j] >= end_pin : i+w[j] <= end_pin)
 #define aim i+w[j]
--- xgammon-0.99.1128.orig/src/drawing.c
+++ xgammon-0.99.1128/src/drawing.c
@@ -50,6 +50,7 @@ static void	draw_six	  ();
 
 int		rect_width, rect_height;
 static int	dice_x = 0, dice_y = 0;
+struct _gammon_resource gammon_resource;
 
 void DrawBoard (void)
 {
--- xgammon-0.99.1128.orig/src/gammon.h
+++ xgammon-0.99.1128/src/gammon.h
@@ -117,12 +117,14 @@ struct _Player {
 	MoveFunc MoveFunction;
 	BOARD board;
 	X11SET X11Set;
-} Player[2];
+};
+extern struct _Player Player[2];
 
 struct  _PinTable {
         int count;
         int color;
-} Pin[29], rollout_position[29];	/* 0, 25 = bar, 1 - 24 = board and 26, 27 finished[color] */
+};
+extern struct  _PinTable Pin[29], rollout_position[29];	/* 0, 25 = bar, 1 - 24 = board and 26, 27 finished[color] */
 
 
 /* if you have the dice values 1 and 1 and all stones are on different
@@ -137,7 +139,7 @@ typedef struct _Move {
         int to;
 } MOVE;
 
-MOVE possible_moves[8000], *list;
+extern MOVE possible_moves[8000], *list;
 
 struct _move_hist {
 	int	    from [4];
@@ -151,16 +153,18 @@ extern struct _move_hist *move_hist;
 struct _Tournament {
 	unsigned int   game_number;
 	unsigned int   winning_point;
-} tournament;
+};
+extern struct _Tournament tournament;
 
 struct _RolloutSave {
 	int turn;
 	int doubler_value;
 	int doubler_owner;
 	int roll[2];
-} rollout_save;
+};
+extern struct _RolloutSave rollout_save;
 
-FILE *endgame_database;
+extern FILE *endgame_database;
 
 extern void switch_turn();
 
--- xgammon-0.99.1128.orig/src/xgammon.h
+++ xgammon-0.99.1128/src/xgammon.h
@@ -70,7 +70,8 @@ struct _gammon_resource {
 	char	*server;
 	int     port;
 	int     button_move;
-} gammon_resource;
+};
+extern struct _gammon_resource gammon_resource;
 
 /* diawin.c */
 extern void AppendDialogText ();
