summaryrefslogtreecommitdiff
path: root/net/ktorrent-kde3/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-03-20 21:52:23 +0000
committerwiz <wiz@pkgsrc.org>2010-03-20 21:52:23 +0000
commit839a6980f881007ea55d97d57c3e63b051ba1cb1 (patch)
tree93518f734a39aab0a9f51e756a7886eaa13c6ce4 /net/ktorrent-kde3/patches
parentb9a40357856de64a64118078d5ae942c633e0317 (diff)
downloadpkgsrc-839a6980f881007ea55d97d57c3e63b051ba1cb1.tar.gz
Reimport ktorrent as ktorrent-kde3 to make space for the kde4 version.
Addresses PR 42920.
Diffstat (limited to 'net/ktorrent-kde3/patches')
-rw-r--r--net/ktorrent-kde3/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/ktorrent-kde3/patches/patch-ab b/net/ktorrent-kde3/patches/patch-ab
new file mode 100644
index 00000000000..48edc18a433
--- /dev/null
+++ b/net/ktorrent-kde3/patches/patch-ab
@@ -0,0 +1,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