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/kmplot/kmplot_isnan.patch | |
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/kmplot/kmplot_isnan.patch')
-rw-r--r-- | kde/patch/kmplot/kmplot_isnan.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/kde/patch/kmplot/kmplot_isnan.patch b/kde/patch/kmplot/kmplot_isnan.patch new file mode 100644 index 0000000..691ff89 --- /dev/null +++ b/kde/patch/kmplot/kmplot_isnan.patch @@ -0,0 +1,42 @@ +--- kmplot-15.12.3/kmplot/view.cpp.0 2016-03-11 21:19:48.011194225 +0000 ++++ kmplot-15.12.3/kmplot/view.cpp 2016-03-11 21:20:37.341056493 +0000 +@@ -476,7 +476,7 @@ + double x = pixel.x(); + double y = pixel.y(); + +- if ( isnan(x) ) ++ if ( std::isnan(x) ) + { + xclipflg = true; + x = pixelIfNaN.x(); +@@ -496,14 +496,14 @@ + } + else + { +- if ( isinf(x) == -1 ) ++ if ( std::isinf(x) == -1 ) + x = 0; + +- else if ( isinf(x) == 1 ) ++ else if ( std::isinf(x) == 1 ) + x = m_clipRect.right(); + } + +- if ( isnan(y) ) ++ if ( std::isnan(y) ) + { + yclipflg = true; + y = pixelIfNaN.y(); +@@ -523,10 +523,10 @@ + } + else + { +- if ( isinf(y) == -1 ) ++ if ( std::isinf(y) == -1 ) + y = 0; + +- else if ( isinf(y) == 1 ) ++ else if ( std::isinf(y) == 1 ) + y = m_clipRect.bottom(); + } + |