]> git.pld-linux.org Git - packages/amanda.git/blob - amanda-glib2.32.patch
- fixed assertion failed: (!g_thread_supported()) issue with newer glib
[packages/amanda.git] / amanda-glib2.32.patch
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
31 --- amanda-3.2.3.old/common-src/glib-util.c     2012/03/10 13:43:52
32 +++ amanda-3.2.3/common-src/glib-util.c 2012/05/07 17:25:35
33 @@ -42,7 +42,9 @@
34       * is initialized) */
35  #ifdef HAVE_LIBCURL
36  # ifdef G_THREADS_ENABLED
37 +#  if (GLIB_MAJOR_VERSION < 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 32))
38      g_assert(!g_thread_supported()); /* assert threads aren't initialized yet */
39 +#  endif
40  # endif
41      g_assert(curl_global_init(CURL_GLOBAL_ALL) == 0);
42  #endif
43
This page took 0.139353 seconds and 3 git commands to generate.