aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-05-29 22:36:07 +0800
committerChristian Persch <chpe@src.gnome.org>2004-05-29 22:36:07 +0800
commitb8b4901eba7cde41f0d7776f63ffac3eadf7e001 (patch)
treedf7136601ede392b900248c202dcade232f9f690 /lib
parentd1fb1edd57e2b64f1a8500c6fa460f194817d1d5 (diff)
downloadgsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar.gz
gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar.zst
gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.zip
Add check for 'mkdtemp', since solaris doesn't have it.
2004-05-29 Christian Persch <chpe@cvs.gnome.org> * configure.in: Add check for 'mkdtemp', since solaris doesn't have it. * lib/ephy-file-helpers.c: (ephy_file_tmp_dir): Error out if we don't have mkdtemp.
Diffstat (limited to 'lib')
-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)