diff options
author | Sam James <sam@gentoo.org> | 2022-06-30 21:18:43 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-30 21:32:30 +0000 |
commit | c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1 (patch) | |
tree | b9fdc862d890bfee191b257327def36e9d5bf210 /games-rpg/manaplus | |
parent | www-apps/icingaweb2: 2.11.0 bump (diff) | |
download | gentoo-c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1.tar.gz gentoo-c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1.tar.bz2 gentoo-c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1.zip |
games-rpg/manaplus: fix build with GCC 12
Closes: https://bugs.gentoo.org/855212
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-rpg/manaplus')
-rw-r--r-- | games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch | 13 | ||||
-rw-r--r-- | games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild | 4 |
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 |