mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-03 13:27:28 -08:00
games-arcade/gnake: fix build with gcc15
Closes: https://bugs.gentoo.org/944252 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Closes: https://github.com/gentoo/gentoo/pull/41184 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
4fcf14ec6f
commit
d416c2f0da
39
games-arcade/gnake/files/gnake-0.94b-gcc15.patch
Normal file
39
games-arcade/gnake/files/gnake-0.94b-gcc15.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
https://bugs.gentoo.org/944252
|
||||||
|
|
||||||
|
--- a/gnake.c
|
||||||
|
+++ b/gnake.c
|
||||||
|
@@ -64,14 +64,14 @@ typedef struct {
|
||||||
|
void getOptions(int argc, char *argv[]);
|
||||||
|
void DrawWindow();
|
||||||
|
void Init();
|
||||||
|
-void Step();
|
||||||
|
+void Step(int a);
|
||||||
|
void Draw();
|
||||||
|
void End();
|
||||||
|
|
||||||
|
coord getRandEmptyCell(int mandatory);
|
||||||
|
void createApple(int i);
|
||||||
|
|
||||||
|
-void Resize();
|
||||||
|
+void Resize(int a);
|
||||||
|
|
||||||
|
char *TheGameName = "Gnake 0.94b";
|
||||||
|
|
||||||
|
@@ -349,7 +349,7 @@ void CPUMove(int n) {
|
||||||
|
Snk[n].Dir = d;
|
||||||
|
}
|
||||||
|
|
||||||
|
-void Step() {
|
||||||
|
+void Step(int a) {
|
||||||
|
node *Last;
|
||||||
|
int n, c;
|
||||||
|
|
||||||
|
@@ -716,7 +716,7 @@ void Init() {
|
||||||
|
setitimer(ITIMER_REAL, &Timer, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
-void Resize() {
|
||||||
|
+void Resize(int a) {
|
||||||
|
FILE *p;
|
||||||
|
int l, c;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@ -18,6 +18,10 @@ RDEPEND="sys-libs/ncurses:="
|
|||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND="virtual/pkgconfig"
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-gcc15.patch"
|
||||||
|
)
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
tc-export CC
|
tc-export CC
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user