summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-03-19 23:09:31 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-03-19 23:09:31 +0000
commit53b7d5d4288f94c22c8b41a88bb62bd1bdc7ca2a (patch)
treefe49f19cf45a25f66b4859ec9e38a39fb8d0f613 /tests
parent72ee7be0a13b52e398cf5d311116521990c9af7d (diff)
downloadtracker-53b7d5d4288f94c22c8b41a88bb62bd1bdc7ca2a.tar.gz
tests: Fix build with GLib 2.28
Diffstat (limited to 'tests')
-rw-r--r--tests/libtracker-miner/tracker-file-notifier-test.c8
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 7f04cfd1f..4f7617822 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, \