summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch13
-rw-r--r--games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild4
2 files changed, 17 insertions, 0 deletions
diff --git a/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch b/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch
new file mode 100644
index 000000000000..5ded1f0fa9d5
--- /dev/null
+++ b/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/855212
+--- a/src/resources/wallpaper.cpp
++++ b/src/resources/wallpaper.cpp
+@@ -38,9 +38,7 @@
+ #include <sys/time.h>
+ #endif // WIN32
+
+-#ifdef __clang__
+ #include <ctime>
+-#endif // __clang__
+
+ #include "debug.h"
+
diff --git a/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
index 6c1d04cbb663..f481e1cd9b21 100644
--- a/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
+++ b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild
@@ -55,6 +55,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9.3.23-gcc12-time.patch
+)
+
src_prepare() {
default