aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-private.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-16 03:06:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-16 03:06:30 +0800
commitcbbaa07125fafaa8c0546d5ba087c25eb39480c7 (patch)
treeee8726fa5bcb5ffa628f9e09bbc4fd8f408c26a8 /camel/camel-private.h
parent7947a64780e544918fae6a91f6fabd1f9f8857df (diff)
downloadgsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.tar
gsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.tar.gz
gsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.tar.bz2
gsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.tar.lz
gsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.tar.xz
gsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.tar.zst
gsoc2013-evolution-cbbaa07125fafaa8c0546d5ba087c25eb39480c7.zip
Don't allow any empty structs. If !ENABLE_THREADS, provide a gpointer
2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * camel-private.h: Don't allow any empty structs. If !ENABLE_THREADS, provide a gpointer dummy member. Fixes bug #6382. svn path=/trunk/; revision=16174
Diffstat (limited to 'camel/camel-private.h')
-rw-r--r--camel/camel-private.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/camel/camel-private.h b/camel/camel-private.h
index 78bf1467a8..22771b3625 100644
--- a/camel/camel-private.h
+++ b/camel/camel-private.h
@@ -61,6 +61,8 @@ struct _CamelStorePrivate {
#ifdef ENABLE_THREADS
GMutex *folder_lock; /* for locking folder operations */
GMutex *cache_lock; /* for locking access to the cache */
+#else
+ gpointer dummy;
#endif
};
@@ -75,6 +77,8 @@ struct _CamelStorePrivate {
struct _CamelTransportPrivate {
#ifdef ENABLE_THREADS
GMutex *send_lock; /* for locking send operations */
+#else
+ gpointer dummy;
#endif
};
@@ -90,6 +94,8 @@ struct _CamelServicePrivate {
#ifdef ENABLE_THREADS
EMutex *connect_lock; /* for locking connection operations */
EMutex *connect_op_lock;/* for locking the connection_op */
+#else
+ gpointer dummy;
#endif
};
@@ -109,6 +115,8 @@ struct _CamelSessionPrivate {
int thread_id;
GHashTable *thread_active;
EThread *thread_queue;
+#else
+ gpointer dummy;
#endif
};
@@ -124,6 +132,8 @@ struct _CamelSessionPrivate {
struct _CamelRemoteStorePrivate {
#ifdef ENABLE_THREADS
EMutex *stream_lock; /* for locking stream operations */
+#else
+ gpointer dummy;
#endif
};
@@ -171,6 +181,8 @@ struct _CamelStoreSummaryPrivate {
GMutex *io_lock; /* load/save lock, for access to saved_count, etc */
GMutex *alloc_lock; /* for setting up and using allocators */
GMutex *ref_lock; /* for reffing/unreffing messageinfo's ALWAYS obtain before summary_lock */
+#else
+ gpointer dummy;
#endif
};