blob: 48edc18a43370cc194595f274585bd769d51ca0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ab,v 1.1.1.1 2010/03/20 21:52:23 wiz Exp $
--- plugins/stats/ChartDrawer.cc.orig 2007-07-23 17:43:08.000000000 +0100
+++ plugins/stats/ChartDrawer.cc
@@ -25,6 +25,9 @@
int isinf(double x) { return !finite(x) && x==x; }
#endif
+#ifdef Q_OS_NETBSD
+#include <sys/param.h>
+#endif
namespace kt {
@@ -272,6 +275,8 @@ void ChartDrawer::AddValue(const size_t
#ifdef USE_SOLARIS
if(isnand(val) || (isinf(val)))
+#elif defined(Q_OS_NETBSD) && __NetBSD_Version__ < 499002000
+ if(isnan(val) || isinf(val))
#else
if(std::isnan(val) || (std::isinf(val)))
#endif
|