blob: ba0964af5352c7bb0102be240e153905048682a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- block.c.orig Sun Sep 15 04:51:13 2002
+++ block.c Sun Sep 15 04:58:04 2002
@@ -99,7 +99,12 @@
void *array;
/* calc how much space we are gonna need */
+#ifdef __va_copy
+ __va_copy (ap, initap);
+#else
ap = initap;
+#endif
+
size = 0;
for(i=0; types[i] != '\0'; i++)
{
@@ -116,7 +121,12 @@
/* set up the ptrs if we can alloc the memory */
if(*handle != NULL)
{
+#ifdef __va_copy
+ __va_copy (ap, initap);
+#else
ap = initap;
+#endif
+
ptr = 0;
for(i=0; types[i] != '\0'; i++)
{
|