From 610c4b880c0fe697dafb3ddb6f170daa3c20ddcf Mon Sep 17 00:00:00 2001 From: anholt Date: Sun, 17 Oct 2004 01:09:01 +0000 Subject: Fix the build on -stable. Older gcc doesn't like having the ALLOCATE mixed in with variable definitions, it seems. --- lang/nickle/files/patch-array.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lang/nickle/files/patch-array.c (limited to 'lang') 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++) -- cgit