diff options
-rw-r--r-- | games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch | 8 | ||||
-rw-r--r-- | games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch | 21 | ||||
-rw-r--r-- | games-action/geki3-KXL/geki3-KXL-1.0.3-r5.ebuild (renamed from games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild) | 3 |
3 files changed, 24 insertions, 8 deletions
diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch index ad84615a398a..a661a6aaa73d 100644 --- a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch +++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch @@ -1,13 +1,7 @@ -Use void so that clang does not complain about missing (unused) -return value, and also add missing string.h. https://bugs.gentoo.org/730854 --- a/src/ranking.c +++ b/src/ranking.c -@@ -1,2 +1,3 @@ - #include <pwd.h>
-+#include <string.h>
- #include "geki3.h"
-@@ -7,3 +8,3 @@ +@@ -7,3 +7,3 @@ **********************/
-int ScoreRanking(void)
+void ScoreRanking(void)
diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch new file mode 100644 index 000000000000..fb76b688783d --- /dev/null +++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/874570 +--- a/src/geki3.h ++++ b/src/geki3.h +@@ -11,2 +11,4 @@ + #include <stdlib.h>
++#include <string.h>
++#include <time.h>
+ #include <sys/types.h>
+--- a/src/load.h ++++ b/src/load.h +@@ -11,2 +11,3 @@ + void LoadStageData(void);
++void UnLoadStageData(void);
+
+--- a/src/your.h ++++ b/src/your.h +@@ -14,2 +14,4 @@ + speed, Uint8 sel);
++void CreateEnemyBomb(Sint16 x, Sint16 y, Uint16 direction, Uint16 speed);
++void CreateMissile(CharacterData *my, Sint16 x, Sint16 y);
+
diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r5.ebuild index a7530fbd1953..2080d24ddd62 100644 --- a/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild +++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -26,6 +26,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}"/${P}-cflags.patch "${FILESDIR}"/${P}-clang.patch + "${FILESDIR}"/${P}-clang16.patch ) src_prepare() { |