1 |
pesa 13/05/27 09:49:57 |
2 |
|
3 |
Added: rename-qAbs-function-for-timeval.patch |
4 |
Log: |
5 |
Fix build with USE=c++0x and gcc-4.8.0 (bug 465590) |
6 |
|
7 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 17A85C72) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-qt/qtcore/files/rename-qAbs-function-for-timeval.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-qt/qtcore/files/rename-qAbs-function-for-timeval.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-qt/qtcore/files/rename-qAbs-function-for-timeval.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: rename-qAbs-function-for-timeval.patch |
16 |
=================================================================== |
17 |
From 522c899b777eb25adb7e235baf0027c0c0a9119a Mon Sep 17 00:00:00 2001 |
18 |
From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= <david.narvaez@××××××××.org> |
19 |
Date: Sat, 23 Feb 2013 23:14:50 -0500 |
20 |
Subject: [PATCH] Rename qAbs Function for timeval |
21 |
|
22 |
This decouples it from qAbs which is declared as a constexpr under |
23 |
certain compilation flags and enables for qtbase to be compiled with |
24 |
GCC 4.8 |
25 |
|
26 |
Change-Id: I78e02256ffc8b460ca74ae5241e77dfac4e09ba9 |
27 |
Reviewed-by: Thiago Macieira <thiago.macieira@×××××.com> |
28 |
(cherry-picked from qtbase commit d9ff510f02bba63dabe7a081a68296056a89ae4c) |
29 |
Reviewed-by: Olivier Goffart <ogoffart@×××××.com> |
30 |
--- |
31 |
src/corelib/kernel/qeventdispatcher_unix.cpp | 5 ++--- |
32 |
1 file changed, 2 insertions(+), 3 deletions(-) |
33 |
|
34 |
diff --git a/src/corelib/kernel/qeventdispatcher_unix.cpp b/src/corelib/kernel/qeventdispatcher_unix.cpp |
35 |
index df3cda1..abf1c29 100644 |
36 |
--- a/src/corelib/kernel/qeventdispatcher_unix.cpp |
37 |
+++ b/src/corelib/kernel/qeventdispatcher_unix.cpp |
38 |
@@ -356,8 +356,7 @@ timeval QTimerInfoList::updateCurrentTime() |
39 |
|
40 |
#if ((_POSIX_MONOTONIC_CLOCK-0 <= 0) && !defined(Q_OS_MAC) && !defined(Q_OS_INTEGRITY)) || defined(QT_BOOTSTRAPPED) |
41 |
|
42 |
-template <> |
43 |
-timeval qAbs(const timeval &t) |
44 |
+timeval qAbsTimeval(const timeval &t) |
45 |
{ |
46 |
timeval tmp = t; |
47 |
if (tmp.tv_sec < 0) { |
48 |
@@ -406,7 +405,7 @@ bool QTimerInfoList::timeChanged(timeval *delta) |
49 |
timeval tickGranularity; |
50 |
tickGranularity.tv_sec = 0; |
51 |
tickGranularity.tv_usec = msPerTick * 1000; |
52 |
- return elapsedTimeTicks < ((qAbs(*delta) - tickGranularity) * 10); |
53 |
+ return elapsedTimeTicks < ((qAbsTimeval(*delta) - tickGranularity) * 10); |
54 |
} |
55 |
|
56 |
void QTimerInfoList::repairTimersIfNeeded() |
57 |
-- |
58 |
1.8.2.1 |