diff -urN epiphany-1.2.3/embed/ephy-embed.c epiphany-1.2.3-hacked/embed/ephy-embed.c
--- epiphany-1.2.3/embed/ephy-embed.c	2004-04-18 22:29:03.000000000 +1200
+++ epiphany-1.2.3-hacked/embed/ephy-embed.c	2004-04-28 10:50:35.000000000 +1200
@@ -406,7 +406,7 @@
 				   int page)
 {
 	EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
-	return iface->print_preview_navigate (embed, type, page);
+	iface->print_preview_navigate (embed, type, page);
 }
 
 gboolean
diff -urN epiphany-1.2.3/lib/ephy-debug.h epiphany-1.2.3-hacked/lib/ephy-debug.h
--- epiphany-1.2.3/lib/ephy-debug.h	2003-11-20 08:19:52.000000000 +1300
+++ epiphany-1.2.3-hacked/lib/ephy-debug.h	2004-04-28 10:50:29.000000000 +1200
@@ -34,6 +34,16 @@
 #define DISABLE_PROFILING
 #endif
 
+#ifdef G_HAVE_ISO_VARARGS
+#ifdef DISABLE_LOGGING
+#define LOG(msg, ...)
+#else
+#define LOG(msg, ...)                      \
+g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,                \
+       "[ %s ] " msg,                      \
+       __FILE__ , __VA_ARGS__);
+#endif
+#elif defined(G_HAVE_GNUC_VARARGS)
 #ifdef DISABLE_LOGGING
 #define LOG(msg, args...)
 #else
@@ -42,6 +52,7 @@
        "[ %s ] " msg,						\
        __FILE__ , ## args);
 #endif
+#endif
 
 #ifdef DISABLE_PROFILING
 #define START_PROFILER(name)
diff -urN epiphany-1.2.3/lib/ephy-dialog.c epiphany-1.2.3-hacked/lib/ephy-dialog.c
--- epiphany-1.2.3/lib/ephy-dialog.c	2004-04-06 05:52:17.000000000 +1200
+++ epiphany-1.2.3-hacked/lib/ephy-dialog.c	2004-04-28 10:50:32.000000000 +1200
@@ -1162,7 +1162,7 @@
 		       const char *domain)
 {
 	EphyDialogClass *klass = EPHY_DIALOG_GET_CLASS (dialog);
-	return klass->construct (dialog, properties, file, name, domain);
+	klass->construct (dialog, properties, file, name, domain);
 }
 
 void
diff -urN epiphany-1.2.3/lib/ephy-file-helpers.c epiphany-1.2.3-hacked/lib/ephy-file-helpers.c
--- epiphany-1.2.3/lib/ephy-file-helpers.c	2004-03-05 13:31:06.000000000 +1300
+++ epiphany-1.2.3-hacked/lib/ephy-file-helpers.c	2004-04-28 10:50:40.000000000 +1200
@@ -52,7 +52,13 @@
 					    "-XXXXXX", NULL);
 		full_name = g_build_filename (g_get_tmp_dir (), partial_name,
 					      NULL);
+#ifdef __SUNPRO_C
+        mkstemp(full_name);
+        tmp_dir = g_malloc(sizeof(char *)*strlen(full_name));
+        strcpy(tmp_dir, full_name);
+#else
 		tmp_dir = mkdtemp (full_name);
+#endif
 		g_free (partial_name);
 
 		if (tmp_dir == NULL)
