gfio: add check for unnecessary g_thread_init() call
[fio.git] / gfio.c
diff --git a/gfio.c b/gfio.c
index 185dbd5..65302e6 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -1677,8 +1677,11 @@ 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 (!g_thread_supported())
                g_thread_init(NULL);
+#endif
+
        gdk_threads_init();
 
        gtk_init(argc, argv);