aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-05-29 22:37:13 +0800
committerChristian Persch <chpe@src.gnome.org>2004-05-29 22:37:13 +0800
commit46cefec5ace6b848a55130891bbbd3703d3bfbd5 (patch)
tree811c91b0e5ee79839aaa940d4146ba8d418178ca /lib
parent585f6c0d42e2deb0e2c3449c8286b01022b89f64 (diff)
downloadgsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.tar
gsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.tar.gz
gsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.tar.bz2
gsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.tar.lz
gsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.tar.xz
gsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.tar.zst
gsoc2013-epiphany-46cefec5ace6b848a55130891bbbd3703d3bfbd5.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. (Backported from HEAD.)
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)