Patchwork [meta-qt5] qtbase-native-5.0.2: fix compilation on Fedora 19

login
register
mail settings
Submitter Eric BENARD
Date July 6, 2013, 8:30 p.m.
Message ID <1373142659-13482-1-git-send-email-eric@eukrea.com>
Download mbox | patch
Permalink /patch/53231/
State Accepted, archived
Headers show

Comments

Eric BENARD - July 6, 2013, 8:30 p.m.
the patch 0017-Rename-qAbs-Function-for-timeval.patch is also
needed for native else, on Fedora 19, we get :
| ../../include/QtCore/../../../qtbase-opensource-src-5.0.2/src/corelib/global/qglobal.h:483:27: error: from previous declaration 'constexpr T qAbs(const T&) [with T = timeval]'
|  Q_DECL_CONSTEXPR inline T qAbs(const T &t) { return t >= 0 ? t : -t; }

Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
---
 recipes-qt/qt5/qtbase-native_5.0.2.bb | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/recipes-qt/qt5/qtbase-native_5.0.2.bb b/recipes-qt/qt5/qtbase-native_5.0.2.bb
index 3df434e..623b17a 100644
--- a/recipes-qt/qt5/qtbase-native_5.0.2.bb
+++ b/recipes-qt/qt5/qtbase-native_5.0.2.bb
@@ -3,5 +3,9 @@  require ${PN}.inc
 
 PR = "${INC_PR}.0"
 
+SRC_URI += " \
+    file://0017-Rename-qAbs-Function-for-timeval.patch \
+"
+
 SRC_URI[md5sum] = "a4fec8ed03867c4ee4fe5a46001a11f0"
 SRC_URI[sha256sum] = "31851ee2f844c100554506a9a446d4b6abb5270bca799c2a683e5f937456a9c8"