Blob Blame History Raw
From 583273d73b2462283b577770d7615ffe7be6666a Mon Sep 17 00:00:00 2001
From: Heiko Becker <heirecka@exherbo.org>
Date: Sun, 22 Jan 2023 22:27:37 +0100
Subject: [PATCH 1/2] 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.
---
 c++/src/kj/string-test.c++ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c++/src/kj/string-test.c++ b/c++/src/kj/string-test.c++
index 84f171363..dfd36ab80 100644
--- a/c++/src/kj/string-test.c++
+++ b/c++/src/kj/string-test.c++
@@ -24,6 +24,7 @@
 #include <string>
 #include "vector.h"
 #include <locale.h>
+#include <cstdint>
 
 namespace kj {
 namespace _ {  // private

From 940000d052753245c9fe1b0c71dfa7bd0d51183e Mon Sep 17 00:00:00 2001
From: Kenton Varda <kenton@sandstorm.io>
Date: Tue, 24 Jan 2023 15:17:31 -0600
Subject: [PATCH 2/2] Update c++/src/kj/string-test.c++

---
 c++/src/kj/string-test.c++ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c++/src/kj/string-test.c++ b/c++/src/kj/string-test.c++
index dfd36ab80..d70e37acf 100644
--- a/c++/src/kj/string-test.c++
+++ b/c++/src/kj/string-test.c++
@@ -24,7 +24,7 @@
 #include <string>
 #include "vector.h"
 #include <locale.h>
-#include <cstdint>
+#include <stdint.h>
 
 namespace kj {
 namespace _ {  // private