diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2004-10-17 01:09:01 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2004-10-17 01:09:01 +0000 |
commit | 5d90a8bd05e68d751129984257311eab801af79d (patch) | |
tree | ec38bb49e282f5a08301267b22f7a4a7247db747 /lang/nickle | |
parent | Make these stylesheets XSLT compliant by making sure templates with the same (diff) |
Fix the build on -stable. Older gcc doesn't like having the ALLOCATE mixed in
with variable definitions, it seems.
Notes
Notes:
svn path=/head/; revision=119633
Diffstat (limited to 'lang/nickle')
-rw-r--r-- | lang/nickle/files/patch-array.c | 22 |
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++) |