summarylogtreecommitdiffstats
path: root/brave-1.52-bat-native-ads-fix-cmath.patch
blob: 47e89eac9263978222e9b0664d1bec0dd81bb9f1 (plain)
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
diff --git a/brave/components/brave_ads/core/internal/ml/data/vector_data.cc b/brave/components/brave_ads/core/internal/ml/data/vector_data.cc
index 45f92fcde0..c9dadc8852 100644
--- a/brave/components/brave_ads/core/internal/ml/data/vector_data.cc
+++ b/brave/components/brave_ads/core/internal/ml/data/vector_data.cc
@@ -5,6 +5,7 @@
 
 #include "brave/components/brave_ads/core/internal/ml/data/vector_data.h"
 
+#include <cmath>
 #include <cstddef>
 #include <limits>
 #include <numeric>
diff --git a/brave/components/brave_ads/core/internal/ml/transformation/hash_vectorizer.cc b/brave/components/brave_ads/core/internal/ml/transformation/hash_vectorizer.cc
index 2ec39abd0f..8c58230207 100644
--- a/brave/components/brave_ads/core/internal/ml/transformation/hash_vectorizer.cc
+++ b/brave/components/brave_ads/core/internal/ml/transformation/hash_vectorizer.cc
@@ -7,6 +7,9 @@
 
 #include "third_party/zlib/zlib.h"
 
+#include <cmath>
+#include <cstring>
+
 namespace brave_ads::ml {
 
 namespace {