SOURCES: babel-gcc3.patch (NEW) - New file: gcc3 patch for old-sty...

japhy japhy at pld-linux.org
Tue Mar 27 00:19:26 CEST 2007


Author: japhy                        Date: Mon Mar 26 22:19:26 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- New file: gcc3 patch for old-style Babel 1.6

---- Files affected:
SOURCES:
   babel-gcc3.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/babel-gcc3.patch
diff -u /dev/null SOURCES/babel-gcc3.patch:1.1
--- /dev/null	Tue Mar 27 00:19:26 2007
+++ SOURCES/babel-gcc3.patch	Tue Mar 27 00:19:21 2007
@@ -0,0 +1,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++)
+       {
================================================================


More information about the pld-cvs-commit mailing list