[PATCH] Fix bonobo-activation on FreeBSD



Hi,

Can I commit this patch? It replaces the use of alloca() with glib's
g_alloca(). This fixes compilation of bonobo-activation on FreeBSD.

-- 
Theo van Klaveren <t vanklaveren student utwente nl>
http://home.student.utwente.nl/t.vanklaveren
Index: qsort_ex.c
===================================================================
RCS file: /cvs/gnome/bonobo-activation/server/qsort_ex.c,v
retrieving revision 1.3
diff -r1.3 qsort_ex.c
27c27
< #include "qsort_ex.h"
---
> #include <glib/galloca.h>
29,31c29
< #if HAVE_ALLOCA
< #include <alloca.h>
< #endif
---
> #include "qsort_ex.h"
98c96
< 	char *pivot_buffer = (char *) alloca (size);
---
> 	char *pivot_buffer = (char *) g_alloca (size);


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