summaryrefslogtreecommitdiff
path: root/patches/monero/0016-fix-mingw-build-issues.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/monero/0016-fix-mingw-build-issues.patch')
-rw-r--r--patches/monero/0016-fix-mingw-build-issues.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/patches/monero/0016-fix-mingw-build-issues.patch b/patches/monero/0016-fix-mingw-build-issues.patch
new file mode 100644
index 0000000..2f19124
--- /dev/null
+++ b/patches/monero/0016-fix-mingw-build-issues.patch
@@ -0,0 +1,46 @@
+From 4bae0074bf325e11054994f7ac2a825d0cda8f14 Mon Sep 17 00:00:00 2001
+From: Czarek Nakamoto <cyjan@mrcyjanek.net>
+Date: Wed, 4 Mar 2026 14:52:14 +0100
+Subject: [PATCH 16/17] fix: mingw build issues
+
+---
+ contrib/epee/include/serialization/keyvalue_serialization.h | 1 +
+ contrib/epee/src/abstract_http_client.cpp | 3 ++-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/contrib/epee/include/serialization/keyvalue_serialization.h b/contrib/epee/include/serialization/keyvalue_serialization.h
+index ccfa2f15e..71f4909e1 100644
+--- a/contrib/epee/include/serialization/keyvalue_serialization.h
++++ b/contrib/epee/include/serialization/keyvalue_serialization.h
+@@ -26,6 +26,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <type_traits>
+ #include <boost/utility/value_init.hpp>
+ #include <boost/foreach.hpp>
+diff --git a/contrib/epee/src/abstract_http_client.cpp b/contrib/epee/src/abstract_http_client.cpp
+index bd9cb0dde..340a7cf85 100644
+--- a/contrib/epee/src/abstract_http_client.cpp
++++ b/contrib/epee/src/abstract_http_client.cpp
+@@ -3,6 +3,7 @@
+ #include "net/http_base.h"
+ #include "net/net_parse_helpers.h"
+ #include "misc_log_ex.h"
++#include <cmath>
+
+ #undef MONERO_DEFAULT_LOG_CATEGORY
+ #define MONERO_DEFAULT_LOG_CATEGORY "net.http"
+@@ -39,7 +40,7 @@ namespace net_utils
+ while (num_char >= radix)
+ {
+ temp = num_char % radix;
+- num_char = (int)floor((float)num_char / (float)radix);
++ num_char = (int)std::floor((float)num_char / (float)radix);
+ csTmp = get_hex_vals()[temp];
+ }
+
+--
+2.51.0
+