diff options
Diffstat (limited to 'games/tetrinet/patches/gcc10.diff')
-rw-r--r-- | games/tetrinet/patches/gcc10.diff | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/games/tetrinet/patches/gcc10.diff b/games/tetrinet/patches/gcc10.diff new file mode 100644 index 0000000000..d71d5a2fbb --- /dev/null +++ b/games/tetrinet/patches/gcc10.diff @@ -0,0 +1,25 @@ +Author: Reiner Herrmann <reiner@reiner-h.de> +Description: Fix FTBFS with GCC 10 +Bug-Debian: https://bugs.debian.org/957872 + +--- a/tetris.c ++++ b/tetris.c +@@ -32,6 +32,7 @@ + signed char specials[MAX_SPECIALS] = {-1}; /* Special block inventory */ + int next_piece; /* Next piece to fall */ + ++PieceData piecedata[7][4]; + static struct timeval timeout; /* Time of next action */ + int current_piece; /* Current piece number */ + int current_rotation; /* Current rotation value */ +--- a/tetris.h ++++ b/tetris.h +@@ -50,7 +50,7 @@ + char shape[4][4]; /* Shape data for the piece */ + } PieceData; + +-PieceData piecedata[7][4]; ++extern PieceData piecedata[7][4]; + + extern int current_piece, current_rotation; + |