1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
From: =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <peb@debian.org>
Date: Sun, 21 Sep 2025 22:07:41 +0200
Subject: Include stdint.h in files missing it
Forwarded: https://github.com/PowerDNS/weakforced/issues/462
uint8_t is not defined without it, and recent g++ won't go without a
proper inclusion
---
common/minicurl.hh | 3 ++-
ext/json11/json11.hpp | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/minicurl.hh b/common/minicurl.hh
index 41274b7..2122417 100644
--- a/common/minicurl.hh
+++ b/common/minicurl.hh
@@ -27,6 +27,7 @@
#include <vector>
#include <memory>
#include <curl/curlver.h>
+#include <stdint.h>
#if defined(LIBCURL_VERSION_NUM) && LIBCURL_VERSION_NUM >= 0x073200
/* we need this so that 'CURL' is not typedef'd to void,
which prevents us from wrapping it in a unique_ptr.
@@ -149,4 +150,4 @@ struct curlTLSOptions {
std::string caCertBundleFile;
std::string clientCertFile;
std::string clientKeyFile;
-};
\ No newline at end of file
+};
diff --git a/ext/json11/json11.hpp b/ext/json11/json11.hpp
index a68394b..4df54fb 100644
--- a/ext/json11/json11.hpp
+++ b/ext/json11/json11.hpp
@@ -55,6 +55,7 @@
#include <map>
#include <memory>
#include <initializer_list>
+#include <stdint.h>
#ifdef _MSC_VER
#if _MSC_VER <= 1800 // VS 2013
|