From 99cb8a80fac934e09028984ea6a472e35d16e9a4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 3 May 2012 16:07:18 -0400 Subject: [PATCH] daemon: Use g_thread_new() for GLib 2.32 --- src/daemon/ot-daemon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/daemon/ot-daemon.c b/src/daemon/ot-daemon.c index b688fedd..465b2fd7 100644 --- a/src/daemon/ot-daemon.c +++ b/src/daemon/ot-daemon.c @@ -183,8 +183,12 @@ do_op_overlay (OstreeDaemon *self, tdata->op = op; tdata->dir = ot_gfile_new_for_path (dir); +#if GLIB_CHECK_VERSION(2,32,0) + g_thread_new ("overlay-dir-thread", overlay_dir_thread, tdata); +#else g_thread_create_full (overlay_dir_thread, tdata, 0, FALSE, FALSE, G_THREAD_PRIORITY_NORMAL, NULL); +#endif } static void