summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/lib/ecore/ecore_glib.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 01ee53dfaa..ef0c9d89dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1739,7 +1739,7 @@ EFL_ADD_LIBS([ECORE], [-lm])
1739 1739
1740# glib 1740# glib
1741 1741
1742EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_glib}], [GLIB], [glib-2.0]) 1742EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_glib}], [GLIB], [glib-2.0 gthread-2.0])
1743if test "x${have_glib}" = "xno"; then 1743if test "x${have_glib}" = "xno"; then
1744 want_g_main_loop="no" 1744 want_g_main_loop="no"
1745fi 1745fi
diff --git a/src/lib/ecore/ecore_glib.c b/src/lib/ecore/ecore_glib.c
index 1a4dd55bfa..813f998d69 100644
--- a/src/lib/ecore/ecore_glib.c
+++ b/src/lib/ecore/ecore_glib.c
@@ -222,6 +222,7 @@ _ecore_glib_init(void)
222 _ecore_glib_select_cond = malloc(sizeof(GCond)); 222 _ecore_glib_select_cond = malloc(sizeof(GCond));
223 g_cond_init(_ecore_glib_select_cond); 223 g_cond_init(_ecore_glib_select_cond);
224#else 224#else
225 if (!g_thread_get_initialized()) g_thread_init(NULL);
225 _ecore_glib_select_lock = g_mutex_new(); 226 _ecore_glib_select_lock = g_mutex_new();
226 _ecore_glib_select_cond = g_cond_new(); 227 _ecore_glib_select_cond = g_cond_new();
227#endif 228#endif