aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-06-27 23:49:17 +0800
committerPeter Williams <peterw@src.gnome.org>2000-06-27 23:49:17 +0800
commit3dc77052b55a3061073dcf0bee70b0926bab7b79 (patch)
tree221fae33b0f388018c0fa0dca345b8599c850a11 /mail
parent802f9e634af5784e2cd07c42255f271e0d5a5b57 (diff)
downloadgsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.tar
gsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.tar.gz
gsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.tar.bz2
gsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.tar.lz
gsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.tar.xz
gsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.tar.zst
gsoc2013-evolution-3dc77052b55a3061073dcf0bee70b0926bab7b79.zip
Fix the test-threads when no threading
svn path=/trunk/; revision=3756
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/test-thread.c12
2 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 690d11027f..95e8d179c6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,7 @@
2000-06-27 Peter Williams <peterw@curious-george.helixcode.com>
+ * test-thread.c: Don't compile if no threads.
+
* session.c: Work without broken threads.
* message-list.c (filter_date): Solve the ctime_r problem the
diff --git a/mail/test-thread.c b/mail/test-thread.c
index 9c62e7f78c..b9fb5bb0b2 100644
--- a/mail/test-thread.c
+++ b/mail/test-thread.c
@@ -8,6 +8,8 @@
#include <stdio.h>
#include "mail-threads.h"
+#ifdef ENABLE_BROKEN_THREADS
+
static void op_1( gpointer userdata );
static void op_2( gpointer userdata );
static void op_3( gpointer userdata );
@@ -139,3 +141,13 @@ int main( int argc, char **argv )
gtk_main();
return 0;
}
+
+#else
+
+int main( int argc, char **argv )
+{
+ g_message( "Threads aren't enabled, so they cannot be tested." );
+ return 0;
+}
+
+#endif