compatibility: Use mkdtemp instead of g_mkdtemp.
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 1 Jul 2013 13:56:31 +0000 (15:56 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 1 Jul 2013 13:56:31 +0000 (15:56 +0200)
tests/test_xml_file.c

index 51a0c1b..f7fbf1d 100644 (file)
@@ -17,6 +17,8 @@
  * USA.
  */
 
+#define _XOPEN_SOURCE 700
+
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <stdlib.h>
@@ -37,7 +39,7 @@ fixtures_setup(TestFixtures *fixtures, gconstpointer test_data)
 {
     CR_UNUSED(test_data);
     gchar *template = g_strdup(TMPDIR_TEMPLATE);
-    fixtures->tmpdir = g_mkdtemp(template);
+    fixtures->tmpdir = mkdtemp(template);
     g_assert(fixtures->tmpdir);
 }