commit 0a916c6: Fix build with gcc 13 by including <cstdint>

Heiko Becker heirecka at exherbo.org
Fri Jan 20 19:28:03 UTC 2023


Author: Heiko Becker
Date: 2023-01-18 23:54:24 +0100
URL: https://github.com/rspamd/rspamd/commit/0a916c632e18e6686e1a2256d5ef2fe1a1cc239f (refs/pull/4375/head)

Fix build with gcc 13 by including <cstdint>
Like other versions before, gcc 13 moved some includes around and as a
result <cstdint> is no longer transitively included. Explicitly include
it for uint8_t.

---
 src/libserver/css/css_tokeniser.hxx | 1 +
 src/libserver/html/html_tag.hxx     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/libserver/css/css_tokeniser.hxx b/src/libserver/css/css_tokeniser.hxx
index 8091ad624..897489974 100644
--- a/src/libserver/css/css_tokeniser.hxx
+++ b/src/libserver/css/css_tokeniser.hxx
@@ -24,6 +24,7 @@
 #include <variant>
 #include <list>
 #include <functional>
+#include <cstdint>
 #include "mem_pool.h"
 
 namespace rspamd::css {
diff --git a/src/libserver/html/html_tag.hxx b/src/libserver/html/html_tag.hxx
index ba086be82..cb83502f5 100644
--- a/src/libserver/html/html_tag.hxx
+++ b/src/libserver/html/html_tag.hxx
@@ -23,6 +23,7 @@
 #include <variant>
 #include <vector>
 #include <optional>
+#include <cstdint>
 
 #include "html_tags.h"
 


More information about the Commits mailing list