Index: ephy-file-helpers.c
===================================================================
RCS file: /cvs/gnome/epiphany/lib/ephy-file-helpers.c,v
retrieving revision 1.19
diff -u -p -r1.19 ephy-file-helpers.c
--- ephy-file-helpers.c	29 May 2004 14:36:07 -0000	1.19
+++ ephy-file-helpers.c	29 May 2004 14:46:20 -0000
@@ -55,7 +55,18 @@ ephy_file_tmp_dir (void)
 #ifdef HAVE_MKDTEMP
 		tmp_dir = mkdtemp (full_name);
 #else
-#error no mkdtemp implementation
+		tmp_dir = ephy_file_tmp_filename (full_name, NULL);
+		if (tmp_dir != NULL)
+		{
+			int ret;
+
+			ret = mkdir (tmp_dir, 0600);
+
+			if (ret < 0)
+			{
+				tmp_dir = NULL;
+			}
+		}
 #endif
 		g_free (partial_name);
 
