From c9e2793a74d82a30f200a54345535b459b96dbd8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz>
Date: Sun, 20 Mar 2022 19:08:23 +0100
Subject: [PATCH] common: fix includes for gcc12

---
 alib2std/src/extensions/algorithm.hpp     | 2 +-
 aql2/src/prompt/ReadlinePromptHistory.cpp | 1 +
 tests/cppaql/glushkovRteTest.cpp          | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/alib2std/src/extensions/algorithm.hpp b/alib2std/src/extensions/algorithm.hpp
index 57c3c11d75..88fa6932d9 100644
--- a/alib2std/src/extensions/algorithm.hpp
+++ b/alib2std/src/extensions/algorithm.hpp
@@ -20,7 +20,7 @@
 
 #include <algorithm>
 #include <functional>
-#include <exception>
+#include <stdexcept>
 
 namespace ext {
 
diff --git a/aql2/src/prompt/ReadlinePromptHistory.cpp b/aql2/src/prompt/ReadlinePromptHistory.cpp
index 1ce2f0a87a..afd7d76a1b 100644
--- a/aql2/src/prompt/ReadlinePromptHistory.cpp
+++ b/aql2/src/prompt/ReadlinePromptHistory.cpp
@@ -4,6 +4,7 @@
 
 #include <cstring>
 #include <array>
+#include <algorithm>
 
 static constexpr std::array < std::pair < char, char >, 8 > esc_char_list = { { { '\a', 'a'}, {'\b', 'b'}, {'\f', 'f'}, {'\n', 'n'}, {'\r', 'r'}, {'\t', 't'}, {'\v', 'v'}, {'\\', '\\'} } };
 
diff --git a/tests/cppaql/glushkovRteTest.cpp b/tests/cppaql/glushkovRteTest.cpp
index ce0ea3f30d..cb0d58f5e3 100644
--- a/tests/cppaql/glushkovRteTest.cpp
+++ b/tests/cppaql/glushkovRteTest.cpp
@@ -4,6 +4,7 @@
 #include <libgen.h>
 #include <map>
 #include <ext/sstream>
+#include <cstring>
 
 #include "testing/TimeoutAqlTest.hpp"
 #include "testing/TestFiles.hpp"
-- 
GitLab