aboutsummaryrefslogtreecommitdiffstats
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
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.)
-rw-r--r--ChangeLog11
-rw-r--r--configure.in7
-rw-r--r--lib/ephy-file-helpers.c4
3 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9fbd76065..e9139557e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
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.)
+
+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 873ffd107..e62d39d7f 100644
--- a/configure.in
+++ b/configure.in
@@ -139,6 +139,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)