gfio: call g_thread_init() for <= 2.31.0
authorJens Axboe <axboe@fb.com>
Tue, 5 Jul 2016 20:23:56 +0000 (14:23 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 5 Jul 2016 20:23:56 +0000 (14:23 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
gfio.c

diff --git a/gfio.c b/gfio.c
index e3bcbdf0127583f1de59897b272b197ff45c25fc..37c181894d752e95c2d24cd5299f50d1ae0feba4 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -1677,7 +1677,7 @@ static void init_ui(int *argc, char **argv[], struct gui *ui)
         * Without it, the update that happens in gfio_update_thread_status
         * doesn't really happen in a timely fashion, you need expose events
         */
-#if !GTK_CHECK_VERSION(2, 24, 0)
+#if !GLIB_CHECK_VERSION(2, 31, 0)
        if (!g_thread_supported())
                g_thread_init(NULL);
 #endif