aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/Makefile.am2
-rw-r--r--camel/camel.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/camel/Makefile.am b/camel/Makefile.am
index 2003a951e6..2db0ecf42c 100644
--- a/camel/Makefile.am
+++ b/camel/Makefile.am
@@ -12,7 +12,7 @@ INCLUDES = -I.. -I$(srcdir)/.. -I$(includedir) \
$(GTK_INCLUDEDIR)
-if HAVE_PTHREAD
+if ENABLE_THREADS
pthread_SRC = \
camel-folder-pt-proxy.c \
diff --git a/camel/camel.c b/camel/camel.c
index 2bb3dc163f..febdb2d2bb 100644
--- a/camel/camel.c
+++ b/camel/camel.c
@@ -29,11 +29,15 @@
gint
camel_init()
{
+
+
+#ifdef ENABLE_THREADS
#ifdef G_THREADS_ENABLED
g_thread_init (NULL);
#else /* G_THREADS_ENABLED */
printf ("Threads are not supported by your version of glib\n");
#endif /* G_THREADS_ENABLED */
+#endif /* ENABLE_THREADS */
return data_wrapper_repository_init ();
}