openbsd-ports/net/ktorrent/patches/patch-plugins_stats_ChartDrawer_cc
sthen 5d5dcf40c6 update KTorrent from Brad
"commit it if it works for you" ajacoutot
2007-12-27 10:24:51 +00:00

13 lines
455 B
Plaintext

$OpenBSD: patch-plugins_stats_ChartDrawer_cc,v 1.1 2007/12/27 10:24:51 sthen Exp $
--- plugins/stats/ChartDrawer.cc.orig Sat Sep 29 01:47:32 2007
+++ plugins/stats/ChartDrawer.cc Sat Sep 29 02:03:26 2007
@@ -272,6 +272,8 @@ void ChartDrawer::AddValue(const size_t idx, const dou
#ifdef USE_SOLARIS
if(isnand(val) || (isinf(val)))
+#elif defined __OpenBSD__
+ if(isnan(val) || (isinf(val)))
#else
if(std::isnan(val) || (std::isinf(val)))
#endif