summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-30 21:13:53 +0000
committerrillig <rillig>2007-11-30 21:13:53 +0000
commit943db8424907a0fac9d2e1bbae020f0980dd4492 (patch)
tree6cd012e15aa7f9990326e4e2d9e4ea0bd7753084 /devel
parentc93aeef9af8f1937f526b6129228f4f190b5de8c (diff)
downloadpkgsrc-943db8424907a0fac9d2e1bbae020f0980dd4492.tar.gz
Fixed invalid lvalue (once again in obstack_ptr_grow).
Diffstat (limited to 'devel')
-rw-r--r--devel/coconut/distinfo3
-rw-r--r--devel/coconut/patches/patch-ab22
2 files changed, 24 insertions, 1 deletions
diff --git a/devel/coconut/distinfo b/devel/coconut/distinfo
index 7fab3aa2a9a..cc9162ad270 100644
--- a/devel/coconut/distinfo
+++ b/devel/coconut/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 22:24:11 agc Exp $
+$NetBSD: distinfo,v 1.4 2007/11/30 21:13:53 rillig Exp $
SHA1 (coconut-0.3.0.tar.gz) = 69c1c4cbf061def240f7c8c1636bdddb2c00da5b
RMD160 (coconut-0.3.0.tar.gz) = 71098f8eb9a731f990534c98d532707ce93329dc
Size (coconut-0.3.0.tar.gz) = 692317 bytes
SHA1 (patch-aa) = ea9f4b49f55ae74a61f0b72687c973de71b14a7b
+SHA1 (patch-ab) = dec14730ce92d32e1bc53bc301f1b7e3dae32043
diff --git a/devel/coconut/patches/patch-ab b/devel/coconut/patches/patch-ab
new file mode 100644
index 00000000000..43f75252cd9
--- /dev/null
+++ b/devel/coconut/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2007/11/30 21:13:54 rillig Exp $
+
+--- coconut/fobstack.h.orig 2001-01-21 00:02:00.000000000 +0000
++++ coconut/fobstack.h 2007-11-30 21:04:44.000000000 +0000
+@@ -421,7 +421,7 @@ __extension__ \
+ ({ struct obstack *__o = (OBSTACK); \
+ if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
+ _obstack_newchunk (__o, sizeof (void *)); \
+- *((void **)__o->next_free)++ = ((void *)datum); \
++ *((*(void ***)&(__o->next_free)))++ = ((void *)datum); \
+ (void) 0; })
+
+ # define obstack_int_grow(OBSTACK,datum) \
+@@ -429,7 +429,7 @@ __extension__ \
+ ({ struct obstack *__o = (OBSTACK); \
+ if (__o->next_free + sizeof (int) > __o->chunk_limit) \
+ _obstack_newchunk (__o, sizeof (int)); \
+- *((int *)__o->next_free)++ = ((int)datum); \
++ *((*(int **)&(__o->next_free)))++ = ((int)datum); \
+ (void) 0; })
+
+ # define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr)