[tracker] tests: Fix build with GLib 2.28



commit 53b7d5d4288f94c22c8b41a88bb62bd1bdc7ca2a
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Mon Mar 19 23:09:31 2012 +0000

    tests: Fix build with GLib 2.28

 .../libtracker-miner/tracker-file-notifier-test.c  |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c b/tests/libtracker-miner/tracker-file-notifier-test.c
index 7f04cfd..4f76178 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -61,6 +61,14 @@ typedef enum {
 	OPERATION_MOVE
 } OperationType;
 
+#if GLIB_MINOR_VERSION < 30
+gchar *
+g_mkdtemp (gchar *tmpl)
+{
+	return mkdtemp (tmpl);
+}
+#endif
+
 #define test_add(path,fun)	  \
 	g_test_add (path, \
 	            TestCommonContext, \



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