From 39379d70221f9a0c2f190194a86f8bf8b82b8bd8 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 16 Nov 2022 14:30:58 -0600 Subject: [PATCH] epee: add missing header See Monero commit [e106bdc1fc3a9bb08837b05299088f3b6c4f66ba](https://github.com/monero-project/monero/commit/e106bdc1fc3a9bb08837b05299088f3b6c4f66ba#diff-d2cb9c3ff4c4762cfd7e736b42f3eb354a361fe9f0ecd2f956c08f03eb5f3405) by [@selsta](https://github.com/selsta). This commit includes in three epee source files in other to fix GCC11 builds, in my case for cross-compiling for Windows from Ubuntu using MinGW. I patch my files locally in order to achieve this, whereas this fix, tracking Monero upstream code, will allow builds to complete using GCC11 out of the box. See also https://github.com/MultiMC/Launcher/issues/3574 for the same issue in another repository for context. --- contrib/epee/src/buffer.cpp | 1 + contrib/epee/src/wipeable_string.cpp | 1 + src/wallet/wallet_rpc_helpers.h | 1 + 3 files changed, 3 insertions(+) diff --git a/contrib/epee/src/buffer.cpp b/contrib/epee/src/buffer.cpp index 10ea6de56..cf94fb5d5 100644 --- a/contrib/epee/src/buffer.cpp +++ b/contrib/epee/src/buffer.cpp @@ -26,6 +26,7 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include #include #include "net/buffer.h" diff --git a/contrib/epee/src/wipeable_string.cpp b/contrib/epee/src/wipeable_string.cpp index 21312d49d..03cb05232 100644 --- a/contrib/epee/src/wipeable_string.cpp +++ b/contrib/epee/src/wipeable_string.cpp @@ -27,6 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +#include #include #include "memwipe.h" #include "misc_log_ex.h" diff --git a/src/wallet/wallet_rpc_helpers.h b/src/wallet/wallet_rpc_helpers.h index 35714db03..6f50b6727 100644 --- a/src/wallet/wallet_rpc_helpers.h +++ b/src/wallet/wallet_rpc_helpers.h @@ -28,6 +28,7 @@ #pragma once +#include #include namespace