summaryrefslogtreecommitdiff
path: root/math/nickle/patches
diff options
context:
space:
mode:
authortnn <tnn>2010-01-15 23:09:28 +0000
committertnn <tnn>2010-01-15 23:09:28 +0000
commitb706e6cbcccc190f8866befe08511d181f6e418c (patch)
tree4083cdbd1203ae9d9bf19f0e0fb651c97c01b3e3 /math/nickle/patches
parentd426e73e82bd35f9e535dbedbc27a8a37ef20826 (diff)
downloadpkgsrc-b706e6cbcccc190f8866befe08511d181f6e418c.tar.gz
fix build issue with Sun Studio. It doesn't like void values as operators
to ternary expressions, even when the result is discarded. While here, update to nickle-2.69. Only difference seems to be that configry is generated with newer autotools.
Diffstat (limited to 'math/nickle/patches')
-rw-r--r--math/nickle/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/nickle/patches/patch-aa b/math/nickle/patches/patch-aa
new file mode 100644
index 00000000000..e86449ed566
--- /dev/null
+++ b/math/nickle/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.4 2010/01/15 23:09:28 tnn Exp $
+
+--- execute.c.orig 2008-03-20 00:21:49.000000000 +0000
++++ execute.c
+@@ -730,7 +730,7 @@ ThreadUnwind (Value thread, int twixt, i
+ #endif
+ }
+
+-#define ThreadBoxCheck(box,i) (BoxValueGet(box,i) == 0 ? ThreadBoxSetDefault(box,i,0) : 0)
++#define ThreadBoxCheck(box,i) (BoxValueGet(box,i) == 0 ? (ThreadBoxSetDefault(box,i,0) ,1) : 0)
+
+ typedef struct _TypeChain {
+ struct _TypeChain *prev;