net-p2p/feather: add some extra includes for monero

Closes: https://bugs.gentoo.org/887871
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
Adam Pimentel
2022-12-25 15:59:37 -05:00
parent 6e5650d966
commit 58e5341188
2 changed files with 28 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ src_prepare() {
default
echo "#define FEATHER_VERSION \"${PV}\"" > "${WORKDIR}"/${PF}/src/config-feather.h || die
echo "#define TOR_VERSION \"NOT_EMBEDDED\"" >> "${WORKDIR}"/${PF}/src/config-feather.h || die
pushd monero
eapply "${FILESDIR}"/monero_add_some_includes.patch
popd
cmake_src_prepare
}

View File

@@ -0,0 +1,25 @@
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp
index e00421f873e..da144aca403 100644
--- a/src/common/dns_utils.cpp
+++ b/src/common/dns_utils.cpp
@@ -30,6 +30,8 @@
// check local first (in the event of static or in-source compilation of libunbound)
#include "unbound.h"
+#include <deque>
+#include <set>
#include <stdlib.h>
#include "include_base_utils.h"
#include "common/threadpool.h"
diff --git a/src/common/threadpool.h b/src/common/threadpool.h
index 53421e18b30..fcf8ca9455a 100644
--- a/src/common/threadpool.h
+++ b/src/common/threadpool.h
@@ -31,6 +31,7 @@
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>
#include <cstddef>
+#include <deque>
#include <functional>
#include <utility>
#include <vector>