diff options
author | abs <abs> | 2007-08-23 16:40:29 +0000 |
---|---|---|
committer | abs <abs> | 2007-08-23 16:40:29 +0000 |
commit | ad02a8f4404502d31c30a3f832cdcfac13f1da2c (patch) | |
tree | 990392a06da5c615edbd9dba80ee10088610c69a /net/ktorrent/patches | |
parent | 8da74e03c3a6c0bdf4bdf0525204fe56ba7480e7 (diff) | |
download | pkgsrc-ad02a8f4404502d31c30a3f832cdcfac13f1da2c.tar.gz |
Update ktorrent to 2.2.1nb1. Fix compile on NetBSD/-current - from Bernd Ernesti - PR/36804
Diffstat (limited to 'net/ktorrent/patches')
-rw-r--r-- | net/ktorrent/patches/patch-ab | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/net/ktorrent/patches/patch-ab b/net/ktorrent/patches/patch-ab index ea5b378d13f..b68122e7a14 100644 --- a/net/ktorrent/patches/patch-ab +++ b/net/ktorrent/patches/patch-ab @@ -1,12 +1,22 @@ -$NetBSD: patch-ab,v 1.3 2007/07/22 08:38:58 abs Exp $ +$NetBSD: patch-ab,v 1.4 2007/08/23 16:40:29 abs Exp $ ---- plugins/stats/ChartDrawer.cc.orig 2007-07-18 15:37:03.000000000 +0100 +--- plugins/stats/ChartDrawer.cc.orig 2007-07-23 17:43:08.000000000 +0100 +++ plugins/stats/ChartDrawer.cc -@@ -272,6 +272,8 @@ void ChartDrawer::AddValue(const size_t +@@ -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) ++#elif defined(Q_OS_NETBSD) && __NetBSD_Version__ < 499002000 + if(isnan(val) || isinf(val)) #else if(std::isnan(val) || (std::isinf(val))) |