From 1a1123394a010a3f7da577ae171c33a3ec44f794 Mon Sep 17 00:00:00 2001
From: Uwe Hermann <uwe@hermann-uwe.de>
Date: Fri, 18 Sep 2020 16:44:31 +0200
Subject: plugins/examples/qt5-freeze: Fix qtimageformats build (fixes #2563).

Add missing <math.h> #include. Without this the build fails with:

 [...]qjp2handler.cpp:853:86: error: 'pow' was not declared in this scope

Taken from bd76e1080ef7ddbbfe683d6371629aecb02bc9bd.
---
 plugins/examples/qt5-freeze/qtimageformats-2.patch | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 plugins/examples/qt5-freeze/qtimageformats-2.patch

diff --git a/plugins/examples/qt5-freeze/qtimageformats-2.patch b/plugins/examples/qt5-freeze/qtimageformats-2.patch
new file mode 100644
index 0000000..4bce01d
--- /dev/null
+++ b/plugins/examples/qt5-freeze/qtimageformats-2.patch
@@ -0,0 +1,23 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Mark Brand <mabrand@mabrand.nl>
+Date: Wed, 29 Jul 2020 01:47:16 +0200
+Subject: [PATCH 1/1] add missing header for pow()
+
+
+diff --git a/src/plugins/imageformats/jp2/qjp2handler.cpp b/src/plugins/imageformats/jp2/qjp2handler.cpp
+index 1111111..2222222 100644
+--- a/src/plugins/imageformats/jp2/qjp2handler.cpp
++++ b/src/plugins/imageformats/jp2/qjp2handler.cpp
+@@ -46,6 +46,8 @@
+ 
+ #include <jasper/jasper.h>
+ 
++#include <math.h>
++
+ QT_BEGIN_NAMESPACE
+ 
+ class QJp2HandlerPrivate
-- 
cgit v0.12