summaryrefslogtreecommitdiff
path: root/x11/kdelibs3
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-09-14 17:55:15 +0000
committerhans <hans@pkgsrc.org>2011-09-14 17:55:15 +0000
commit6d44e44fbafaabecd9b420976819d4811924c4f0 (patch)
tree4a1be89b7fd8237837a93c41ac9c961ed35d3c17 /x11/kdelibs3
parent46abe3822defa80cc5f03b78471316f2c6bee8c9 (diff)
downloadpkgsrc-6d44e44fbafaabecd9b420976819d4811924c4f0.tar.gz
Provide a definition of isinf() to make this work on SunOS. While
isinf() is available on SunOS, using it requires C99 etc. which breaks in other places.
Diffstat (limited to 'x11/kdelibs3')
-rw-r--r--x11/kdelibs3/distinfo3
-rw-r--r--x11/kdelibs3/patches/patch-dc19
2 files changed, 21 insertions, 1 deletions
diff --git a/x11/kdelibs3/distinfo b/x11/kdelibs3/distinfo
index 424d714f9cc..26adea6bf81 100644
--- a/x11/kdelibs3/distinfo
+++ b/x11/kdelibs3/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.100 2011/08/22 17:16:24 adam Exp $
+$NetBSD: distinfo,v 1.101 2011/09/14 17:55:15 hans Exp $
SHA1 (kdelibs-3.5.10.tar.bz2) = c930a25f4419134def55b8466c3a6f737227fb82
RMD160 (kdelibs-3.5.10.tar.bz2) = 4c960664283c83ebc8e68932ca9044336fcff223
@@ -29,3 +29,4 @@ SHA1 (patch-ce) = e9f7a348b0e4be1475ba8f56a8b474f139eb7781
SHA1 (patch-cf) = 0409b64ee00f355bfc2056e596b519a241fcf522
SHA1 (patch-da) = ac1888a52f22ac81c0fb51dda48c8e168516a229
SHA1 (patch-db) = bba958ba9f3059074fd97174dacab2bf47801fa8
+SHA1 (patch-dc) = 3d6971b13599ac7acce9d63b76a8813e9c87bc96
diff --git a/x11/kdelibs3/patches/patch-dc b/x11/kdelibs3/patches/patch-dc
new file mode 100644
index 00000000000..facc67cd04b
--- /dev/null
+++ b/x11/kdelibs3/patches/patch-dc
@@ -0,0 +1,19 @@
+$NetBSD: patch-dc,v 1.4 2011/09/14 17:55:15 hans Exp $
+
+--- kjs/operations.cpp.orig 2005-10-10 17:06:14.000000000 +0200
++++ kjs/operations.cpp 2011-09-07 15:05:55.044046847 +0200
+@@ -51,6 +51,14 @@
+ #include "operations.h"
+ #include "object.h"
+
++#if defined(__sun)
++#define INFINITY (__builtin_inff())
++#define isinf(x) __extension__( \
++ { __typeof(x) __x_i = (x); \
++ __x_i == (__typeof(__x_i)) INFINITY || \
++ __x_i == (__typeof(__x_i)) (-INFINITY); })
++#endif
++
+ using namespace KJS;
+
+ bool KJS::isNaN(double d)