aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)