mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
Fix the build on -stable. Older gcc doesn't like having the ALLOCATE mixed in
with variable definitions, it seems.
This commit is contained in:
parent
1c9327234f
commit
5d90a8bd05
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119633
22
lang/nickle/files/patch-array.c
Normal file
22
lang/nickle/files/patch-array.c
Normal file
@ -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++)
|
Loading…
x
Reference in New Issue
Block a user