Patch for bonobo to make it compile in PPC



libbonobo compilation was failing at bonobo-types.c
in bonobo_closure_invoke_va_list. The function G_VALUE_LCOPY ();
was complaining about receiving a gpointer. 
Here is the patch that makes it compile in ppc. Hope it ok.
Ok to apply?

ariel 
? ariel.patch
? bonobo/ariel.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libbonobo/ChangeLog,v
retrieving revision 1.185
diff -u -r1.185 ChangeLog
--- ChangeLog	2001/09/11 02:54:19	1.185
+++ ChangeLog	2001/09/17 05:12:19
@@ -1,3 +1,8 @@
+2001-09-17  Ariel Rios  <ariel gnu org>
+
+	* bonobo/bonobo-types.c (bonobo_closure_invoke_va_list): Use var_args variable
+	here instead of gpointer since it caused problems in PPC.
+
 2001-09-10  Alex Larsson <alexl redhat com>
 
 	* bonobo/bonobo-types.c (bonobo_corba_any_get_type),
Index: bonobo/bonobo-types.c
===================================================================
RCS file: /cvs/gnome/libbonobo/bonobo/bonobo-types.c,v
retrieving revision 1.18
diff -u -r1.18 bonobo-types.c
--- bonobo/bonobo-types.c	2001/09/11 02:54:20	1.18
+++ bonobo/bonobo-types.c	2001/09/17 05:12:22
@@ -419,8 +419,7 @@
 			       va_list   var_args)
 {
 	GArray   *params;
-	GValue    return_value = { 0, };
-	gpointer  retloc_ptr = var_args;
+	GValue    return_value = { 0, }; 
 	GType     type, rtype;
 	int       i;
   
@@ -479,7 +478,7 @@
 		 * g_value_unset() it here.
 		 */
 
-		G_VALUE_LCOPY (&return_value, retloc_ptr,
+		G_VALUE_LCOPY (&return_value, var_args,
 			       G_VALUE_NOCOPY_CONTENTS,
 			       &error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]