From 5d19161059c07a2bf116fd0c50525c6505e028ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Fri, 6 Feb 2015 10:47:07 +0100 Subject: [PATCH] Fix crash with CentOS 6 --- tester/liblinphone_tester.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index 23b5a8652..fc3f315e5 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -173,6 +173,9 @@ int main (int argc, char *argv[]) #ifdef HAVE_GTK gtk_init(&argc, &argv); +#if !GLIB_CHECK_VERSION(2,32,0) // backward compatibility with Debian 6 and CentOS 6 + g_thread_init(NULL); +#endif gdk_threads_init(); #endif