43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
|
From fadeb6b103cb441e0e91ef506ef29febabb10715 Mon Sep 17 00:00:00 2001
|
||
|
From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
|
||
|
Date: Thu, 19 Jan 2023 19:35:43 +0100
|
||
|
Subject: [PATCH] Add missing includes to fix gcc-13 compile error
|
||
|
|
||
|
---
|
||
|
src/support/lockedpool.cpp | 3 +++
|
||
|
src/support/lockedpool.h | 4 ++--
|
||
|
2 files changed, 5 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/src/support/lockedpool.cpp b/src/support/lockedpool.cpp
|
||
|
index fb59324f7a890..8b057433309fe 100644
|
||
|
--- a/src/support/lockedpool.cpp
|
||
|
+++ b/src/support/lockedpool.cpp
|
||
|
@@ -19,6 +19,9 @@
|
||
|
#endif
|
||
|
|
||
|
#include <algorithm>
|
||
|
+#include <limits>
|
||
|
+#include <stdexcept>
|
||
|
+#include <utility>
|
||
|
#ifdef ARENA_DEBUG
|
||
|
#include <iomanip>
|
||
|
#include <iostream>
|
||
|
diff --git a/src/support/lockedpool.h b/src/support/lockedpool.h
|
||
|
index 03e4e371a3a98..66fbc218abfd9 100644
|
||
|
--- a/src/support/lockedpool.h
|
||
|
+++ b/src/support/lockedpool.h
|
||
|
@@ -5,11 +5,11 @@
|
||
|
#ifndef BITCOIN_SUPPORT_LOCKEDPOOL_H
|
||
|
#define BITCOIN_SUPPORT_LOCKEDPOOL_H
|
||
|
|
||
|
-#include <stdint.h>
|
||
|
+#include <cstddef>
|
||
|
#include <list>
|
||
|
#include <map>
|
||
|
-#include <mutex>
|
||
|
#include <memory>
|
||
|
+#include <mutex>
|
||
|
#include <unordered_map>
|
||
|
|
||
|
/**
|