[tracker/tracker-0.14] tests: Fix build with GLib 2.28
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [tracker/tracker-0.14] tests: Fix build with GLib 2.28
- Date: Thu,  3 May 2012 18:18:21 +0000 (UTC)
commit 12210595c72bab1e72e3df8dfcd547640192e407
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]