d8b02aacd1070d6826f32f29fd340b1887a8eef8
[debian/amanda] / debian / patches / kfreebsd-ftbfs.diff
1 diff --git a/common-src/glib-util.c b/common-src/glib-util.c
2 index 6a42e8e..99f55f7 100644
3 --- a/common-src/glib-util.c
4 +++ b/common-src/glib-util.c
5 @@ -38,12 +38,8 @@ glib_init(void) {
6      if (did_glib_init) return;
7      did_glib_init = TRUE;
8  
9 -    /* set up libcurl (this must happen before threading 
10 -     * is initialized) */
11 +    /* set up libcurl */
12  #ifdef HAVE_LIBCURL
13 -# ifdef G_THREADS_ENABLED
14 -    g_assert(!g_thread_supported()); /* assert threads aren't initialized yet */
15 -# endif
16      g_assert(curl_global_init(CURL_GLOBAL_ALL) == 0);
17  #endif
18  
19 @@ -64,12 +60,6 @@ glib_init(void) {
20      /* Initialize glib's type system.  On glib >= 2.24, this will initialize
21       * threads, so it must be done after curl is initialized. */
22      g_type_init();
23 -
24 -    /* And set up glib's threads */
25 -#if defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE)
26 -    if (!g_thread_supported())
27 -       g_thread_init(NULL);
28 -#endif
29  }
30  
31  typedef enum {