aboutsummaryrefslogtreecommitdiffstats
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
parentd1fb1edd57e2b64f1a8500c6fa460f194817d1d5 (diff)
downloadgsoc2013-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.
-rw-r--r--ChangeLog10
-rw-r--r--configure.in7
-rw-r--r--lib/ephy-file-helpers.c4
3 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 899e359d8..7c8f60b8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
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.
+
+2004-05-29 Christian Persch <chpe@cvs.gnome.org>
+
* lib/ephy-dialog.c: (ephy_dialog_construct):
Don't return a value in void function, part of bug #141319.
diff --git a/configure.in b/configure.in
index 50ec6b32c..4f2730057 100644
--- a/configure.in
+++ b/configure.in
@@ -106,6 +106,13 @@ fi
AM_GCONF_SOURCE_2
+dnl ******************
+dnl Portability checks
+dnl ******************
+
+AC_CHECK_FUNCS(mkdtemp)
+
+dnl *************************************************************************
dnl This is from Mozilla's configure.in. They set almost all the config stuff
dnl they need in mozilla-config.h Except for this compiler flag, which can't
dnl go in mozilla-config.h So we check the flag too and now we can include
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)