summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Zhu Qun-Ying2020-06-09 19:29:17 +0200
committer Matteo Bernardini2020-06-28 07:12:59 +0200
commit245ba39a25200875893ecdfcbe94b23cd80586fd (patch)
treece709ed8a4f4f79c06266e6b30e29df51e220791
parent412188c11366bf463b7b791d171a146b60f76af9 (diff)
downloadslackbuilds-0ad.tar.gz
games/0ad: Fix missing headers.0ad
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--games/0ad/0ad.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/0ad/0ad.SlackBuild b/games/0ad/0ad.SlackBuild
index 18b7983b5d..e9e267f72d 100644
--- a/games/0ad/0ad.SlackBuild
+++ b/games/0ad/0ad.SlackBuild
@@ -83,6 +83,10 @@ sed -i 's|-mt||g' build/premake/extern_libs5.lua
sed -i 's|/usr/local/include|/usr/include|' build/premake/{extern_libs5.lua,premake5.lua}
sed -i 's|-isystem |-I|' build/premake/premake5/{src/tools/gcc.lua,tests/tools/test_gcc.lua}
+# Fix missing headers
+sed -i '/include <sstream>/a #include <deque>' ./source/third_party/cppformat/format.h
+sed -i '/include "ps\/Profiler2.h"/a #include <stack>' ./source/ps/Profiler2GPU.cpp
+
# build/workspaces/update-workspaces.sh
# have a root check, let's disable it.
patch -p1 < $CWD/disable-root-check.patch