$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 +#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