diff options
author | Eric Hameleers <alien@slackware.com> | 2016-03-16 13:06:23 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-03-16 13:06:23 +0100 |
commit | 92ecb199a1227b77a72c5735c8f226faa57d5c40 (patch) | |
tree | aaacfe8da846331f59ae1939fd4022abf3ce1848 /kde/patch/kholidays | |
parent | 8aee95d6bfcb713ec6d24685fc05d5717ad1c849 (diff) | |
download | ktown-92ecb199a1227b77a72c5735c8f226faa57d5c40.tar.gz ktown-92ecb199a1227b77a72c5735c8f226faa57d5c40.tar.xz |
Fix build against glibc-2.23
Some packages would fail to compile (only on 32-bit though) with:
"error: 'isnan' was not declared in this scope". Affected sources:
- libksysguard
- kholidays
- kmplot
- kstars
Diffstat (limited to 'kde/patch/kholidays')
-rw-r--r-- | kde/patch/kholidays/kholidays_isnan.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kde/patch/kholidays/kholidays_isnan.patch b/kde/patch/kholidays/kholidays_isnan.patch new file mode 100644 index 0000000..55e79aa --- /dev/null +++ b/kde/patch/kholidays/kholidays_isnan.patch @@ -0,0 +1,30 @@ +From: Milian Wolff <milian.wolff@kdab.com> +Date: Mon, 07 Mar 2016 09:58:37 +0000 +Subject: Fix compile with clang: isnan is in the std namespace when including cmath. +X-Git-Url: http://quickgit.kde.org/?p=kholidays.git&a=commitdiff&h=488aa158f7a0a99604a13a897a11388c02f8d39e +--- +Fix compile with clang: isnan is in the std namespace when including cmath. +--- + + +--- a/src/sunriseset.cpp ++++ b/src/sunriseset.cpp +@@ -180,7 +180,7 @@ + double hourAngle = calcHourAngleSunrise(latitude, solarDec); + double delta = longitude + radToDeg(hourAngle); + QTime timeUTC(0, 0); +- if (isnan(delta)) ++ if (std::isnan(delta)) + return timeUTC; + timeUTC = timeUTC.addSecs((720 - (4.0 * delta) - eqTime) * 60); + return QTime(timeUTC.hour(), +@@ -199,7 +199,7 @@ + double hourAngle = -calcHourAngleSunrise(latitude, solarDec); + double delta = longitude + radToDeg(hourAngle); + QTime timeUTC(0, 0); +- if (isnan(delta)) ++ if (std::isnan(delta)) + return timeUTC; + timeUTC = timeUTC.addSecs((720 - (4.0 * delta) - eqTime) * 60); + return QTime(timeUTC.hour(), + |