diff --git a/external/libzmf/0001-add-missing-include.patch.1 b/external/libzmf/0001-add-missing-include.patch.1 index db2a5c301ef5..c5ddfe9bcafd 100644 --- a/external/libzmf/0001-add-missing-include.patch.1 +++ b/external/libzmf/0001-add-missing-include.patch.1 @@ -12,11 +12,22 @@ 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,8 @@ +@@ -9,6 +9,19 @@ #include "ZMFCollector.h" +#include ++ ++#if defined(ANDROID) ++namespace std ++{ ++template ++T hypot(T x, T y) ++{ ++ return ::hypot(x, y); ++} ++} ++#endif + #include #include