summaryrefslogtreecommitdiff
path: root/external/libzmf/0001-add-missing-include.patch.1
blob: ff1dc2a923f2fe7780313b957b5d1a0803eac835 (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
27
28
29
30
31
32
33
34
35
36
37
From cec69125160906f147398c347860fee0e6aab8bf Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Fri, 24 Jun 2016 09:26:21 +0200
Subject: [PATCH] add missing include

Change-Id: Ia21873123179902b2c3cad95b39db7d15c5b388a
---
 src/lib/ZMFCollector.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ZMFCollector.cpp b/src/lib/ZMFCollector.cpp
index ded93c7..7e024b3 100644
--- a/src/lib/ZMFCollector.cpp
+++ b/src/lib/ZMFCollector.cpp
@@ -9,6 +9,19 @@
 
 #include "ZMFCollector.h"
 
+#include <cmath>
+
+#if defined(__ANDROID__)
+namespace std
+{
+template<typename T>
+T hypot(T x, T y)
+{
+    return ::hypot(x, y);
+}
+}
+#endif
+
 #include <boost/math/constants/constants.hpp>
 #include <boost/variant.hpp>
 
-- 
2.7.4