summaryrefslogtreecommitdiff
path: root/devel/coconut/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-30 21:13:53 +0000
committerrillig <rillig@pkgsrc.org>2007-11-30 21:13:53 +0000
commit080ac3d05bfdfd24bff9761621039d6ad36a774a (patch)
tree6cd012e15aa7f9990326e4e2d9e4ea0bd7753084 /devel/coconut/patches
parentc3dea53e3ac11bfd8793a2a604cac240933d05df (diff)
downloadpkgsrc-080ac3d05bfdfd24bff9761621039d6ad36a774a.tar.gz
Fixed invalid lvalue (once again in obstack_ptr_grow).
Diffstat (limited to 'devel/coconut/patches')
-rw-r--r--devel/coconut/patches/patch-ab22
1 files changed, 22 insertions, 0 deletions
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)