aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2004-10-17 09:09:01 +0800
committeranholt <anholt@FreeBSD.org>2004-10-17 09:09:01 +0800
commit610c4b880c0fe697dafb3ddb6f170daa3c20ddcf (patch)
tree17876797883fe4f85a91b816a373f9b58a479878 /lang
parent9cac628234d6b2ba96f0bc81c5dfaf1082c4469b (diff)
downloadfreebsd-ports-gnome-610c4b880c0fe697dafb3ddb6f170daa3c20ddcf.tar.gz
freebsd-ports-gnome-610c4b880c0fe697dafb3ddb6f170daa3c20ddcf.tar.zst
freebsd-ports-gnome-610c4b880c0fe697dafb3ddb6f170daa3c20ddcf.zip
Fix the build on -stable. Older gcc doesn't like having the ALLOCATE mixed in
with variable definitions, it seems.
Diffstat (limited to 'lang')
-rw-r--r--lang/nickle/files/patch-array.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/nickle/files/patch-array.c b/lang/nickle/files/patch-array.c
new file mode 100644
index 000000000000..c89768329f16
--- /dev/null
+++ b/lang/nickle/files/patch-array.c
@@ -0,0 +1,22 @@
+--- array.c.orig Sat Oct 16 18:02:07 2004
++++ array.c Sat Oct 16 18:02:10 2004
+@@ -223,12 +223,14 @@
+ NewBoxVector (int nvalues, TypePtr type)
+ {
+ ENTER ();
+- BoxVectorPtr bv = ALLOCATE (&BoxVectorType,
+- sizeof (BoxVector) +
+- nvalues * sizeof (BoxPtr));
++ BoxVectorPtr bv;
+ int i;
+- BoxPtr *boxes = BoxVectorBoxes (bv);
+-
++ BoxPtr *boxes;
++
++ bv = ALLOCATE (&BoxVectorType, sizeof (BoxVector) +
++ nvalues * sizeof (BoxPtr));
++ boxes = BoxVectorBoxes (bv);
++
+ bv->nvalues = nvalues;
+ bv->type = type;
+ for (i = 0; i < nvalues; i++)