diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-26 15:17:01 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-26 15:17:08 +0000 |
commit | d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e (patch) | |
tree | bd457b7a68e91c51f68bc071bc6f5d10952a1e3c /games-arcade/nibbles/files | |
parent | sys-apps/pciutils: Bump to version 3.6.4 (diff) | |
download | gentoo-d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e.tar.gz gentoo-d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e.tar.bz2 gentoo-d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e.zip |
games-arcade/nibbles: tweak for gcc-10, bug #706446
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/706446
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'games-arcade/nibbles/files')
-rw-r--r-- | games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch new file mode 100644 index 000000000000..e70203f73c7e --- /dev/null +++ b/games-arcade/nibbles/files/nibbles-0.0.4-gcc-10.patch @@ -0,0 +1,22 @@ +--- a/scoring.c ++++ b/scoring.c +@@ -12,6 +12,8 @@ + #include <time.h> + #include "scoring.h" + ++char highscoref[255]; ++ + int get_high_scores(struct highscoreent *highscores[], int *numscores) + { + FILE *scorefile; +--- a/scoring.h ++++ b/scoring.h +@@ -11,7 +11,7 @@ + /* Max number of high scores we store */ + #define MAXHIGHSCORES 20 + +-char highscoref[255]; ++extern char highscoref[255]; + + struct highscoreent { + char name[16]; |