games-strategy/warzone2100: fix build w/ gcc-15

Not sent upstream as we should really bump warzone2100 first.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-08-06 12:30:49 +01:00
parent bb9cdfdb5f
commit 79fab52ed6
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
--- a/3rdparty/SQLiteCpp/include/SQLiteCpp/Statement.h
+++ b/3rdparty/SQLiteCpp/include/SQLiteCpp/Statement.h
@@ -14,6 +14,7 @@
#include <SQLiteCpp/Exception.h>
#include <SQLiteCpp/Utils.h> // SQLITECPP_PURE_FUNC
+#include <cstdint>
#include <string>
#include <map>
#include <memory>
--- a/lib/wzmaplib/include/wzmaplib/map_io.h
+++ b/lib/wzmaplib/include/wzmaplib/map_io.h
@@ -21,6 +21,7 @@
#pragma once
#include <cstddef>
+#include <cstdint>
#include <string>
#include <memory>
#include <vector>
--- a/lib/wzmaplib/src/map_script.h
+++ b/lib/wzmaplib/src/map_script.h
@@ -19,6 +19,7 @@
#pragma once
+#include <cstdint>
#include <vector>
#include <string>
#include <memory>

View File

@@ -65,6 +65,7 @@ DOCS=( README.md doc/images doc/Scripting.md doc/js-globals.md )
PATCHES=(
"${FILESDIR}"/${PN}-4.1.3-no-compress-manpages.patch
"${FILESDIR}"/${PN}-4.4.2-gcc15-cstdint.patch
)
src_unpack() {