mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
games-engines/odamex: fix build with GCC 12
Closes: https://bugs.gentoo.org/852566 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
21
games-engines/odamex/files/odamex-10.0.0-gcc12.patch
Normal file
21
games-engines/odamex/files/odamex-10.0.0-gcc12.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
https://bugs.gentoo.org/852566
|
||||
--- a/libraries/portmidi/pm_linux/finddefault.c
|
||||
+++ b/libraries/portmidi/pm_linux/finddefault.c
|
||||
@@ -2,6 +2,7 @@
|
||||
Roger Dannenberg, Jan 2009
|
||||
*/
|
||||
|
||||
+#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
--- a/master/main.cpp
|
||||
+++ b/master/main.cpp
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
+#include <ctime>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
@@ -46,6 +46,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-10.0.0-unbundle-fltk.patch
|
||||
"${FILESDIR}"/${PN}-10.0.0-musl.patch
|
||||
"${FILESDIR}"/${PN}-10.0.0-master-std.patch
|
||||
"${FILESDIR}"/${PN}-10.0.0-gcc12.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user