aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index c8ce0ce08..5b8dbc323 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -52,7 +52,11 @@ ephy_file_tmp_dir (void)
"-XXXXXX", NULL);
full_name = g_build_filename (g_get_tmp_dir (), partial_name,
NULL);
+#ifdef HAVE_MKDTEMP
tmp_dir = mkdtemp (full_name);
+#else
+#error no mkdtemp implementation
+#endif
g_free (partial_name);
if (tmp_dir == NULL)