[evolution-data-server] Keep e_flag_timed_wait() building.



commit e73cda0d560a86384beaafcfea101ef826f22de4
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Feb 12 18:03:04 2013 -0500

    Keep e_flag_timed_wait() building.

 libedataserver/e-flag.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/libedataserver/e-flag.c b/libedataserver/e-flag.c
index 67d06f2..ffa1846 100644
--- a/libedataserver/e-flag.c
+++ b/libedataserver/e-flag.c
@@ -25,6 +25,16 @@ struct _EFlag {
 	gboolean is_set;
 };
 
+/* This is to keep e_flag_timed_wait() building, since
+ * it relies on g_cond_timed_wait() which is deprecated. */
+#if GLIB_CHECK_VERSION(2,35,6)
+#ifdef G_DISABLE_DEPRECATED
+gboolean	g_cond_timed_wait		(GCond *cond,
+						 GMutex *mutex,
+						 GTimeVal *timeval);
+#endif /* G_DISABLE_DEPRECATED */
+#endif /* GLIB_CHECK_VERSION */
+
 /**
  * e_flag_new:
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]