]> git.pld-linux.org Git - packages/amanda.git/blame - amanda-glib2.32.patch
- rel 4
[packages/amanda.git] / amanda-glib2.32.patch
CommitLineData
45bb2aac
JR
1--- amanda-3.2.3/common-src/glib-util.c~ 2010-12-08 23:09:29.000000000 +0100
2+++ amanda-3.2.3/common-src/glib-util.c 2012-04-03 12:02:32.801046078 +0200
3@@ -120,6 +120,7 @@
4 }
5 #endif
6
7+#if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32))
8 void g_queue_free_full(GQueue * queue) {
9 while (!g_queue_is_empty(queue)) {
10 gpointer data;
11@@ -128,6 +129,7 @@
12 }
13 g_queue_free(queue);
14 }
15+#endif
16
17 void g_ptr_array_free_full(GPtrArray * array) {
18 size_t i;
19--- amanda-3.2.3/common-src/glib-util.h~ 2010-12-08 23:09:29.000000000 +0100
20+++ amanda-3.2.3/common-src/glib-util.h 2012-04-03 12:03:14.514381294 +0200
21@@ -72,7 +72,9 @@
22
23 /* These functions all take a GLib container, and call free() on all the
24 * pointers in the container before free()ing the container itself. */
25+#if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32))
26 void g_queue_free_full(GQueue * queue);
27+#endif
28 void g_ptr_array_free_full(GPtrArray * array);
29
30 /* g_value_compare() does what you expect. It returns TRUE if and
This page took 0.048572 seconds and 4 git commands to generate.