diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-29 22:36:07 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-29 22:36:07 +0800 |
commit | b8b4901eba7cde41f0d7776f63ffac3eadf7e001 (patch) | |
tree | df7136601ede392b900248c202dcade232f9f690 /lib/ephy-file-helpers.c | |
parent | d1fb1edd57e2b64f1a8500c6fa460f194817d1d5 (diff) | |
download | gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar.gz gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar.bz2 gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar.lz gsoc2013-epiphany-b8b4901eba7cde41f0d7776f63ffac3eadf7e001.tar.xz 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/ephy-file-helpers.c')
-rw-r--r-- | lib/ephy-file-helpers.c | 4 |
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) |