aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-11-13 10:10:33 +0800
committerpav <pav@FreeBSD.org>2005-11-13 10:10:33 +0800
commit23177a945a432a0ad5f96b0d490f16ffed158ae5 (patch)
treeb48396b7e5e9b68ebbf01520a79d3dcd4f988218 /archivers
parent28280582fe49c4c9e85acb4f570e122821fdfb90 (diff)
downloadfreebsd-ports-gnome-23177a945a432a0ad5f96b0d490f16ffed158ae5.tar.gz
freebsd-ports-gnome-23177a945a432a0ad5f96b0d490f16ffed158ae5.tar.zst
freebsd-ports-gnome-23177a945a432a0ad5f96b0d490f16ffed158ae5.zip
- Fix build on FreeBSD 4
Reported by: krismail
Diffstat (limited to 'archivers')
-rw-r--r--archivers/xarchive/files/patch-src-main.c18
-rw-r--r--archivers/xarchive/files/patch-src-widgets_gtk.c13
2 files changed, 31 insertions, 0 deletions
diff --git a/archivers/xarchive/files/patch-src-main.c b/archivers/xarchive/files/patch-src-main.c
new file mode 100644
index 000000000000..0e1363951367
--- /dev/null
+++ b/archivers/xarchive/files/patch-src-main.c
@@ -0,0 +1,18 @@
+--- src/main.c.orig Sun Nov 6 21:26:45 2005
++++ src/main.c Sun Nov 13 02:57:57 2005
+@@ -115,6 +115,7 @@
+ WrapperEntry *wrapent = NULL;
+
+ home = g_strdup_printf("%s/.xarchive/wrappers", getenv("HOME"));
++ {
+ char *dir[] =
+ {
+ home,
+@@ -145,6 +146,7 @@
+ if (WRAPPER_ARRAY == NULL)
+ {
+ g_print("No wrappers found\n");
++ }
+ }
+ }
+
diff --git a/archivers/xarchive/files/patch-src-widgets_gtk.c b/archivers/xarchive/files/patch-src-widgets_gtk.c
new file mode 100644
index 000000000000..58beeb2624d5
--- /dev/null
+++ b/archivers/xarchive/files/patch-src-widgets_gtk.c
@@ -0,0 +1,13 @@
+--- src/widgets_gtk.c.orig Tue Nov 8 20:39:01 2005
++++ src/widgets_gtk.c Sun Nov 13 03:03:53 2005
+@@ -1022,8 +1022,9 @@
+
+ if (wrapper_cmd(AR_EXTRACT, wrapper->argv, wrapper->dir) == 0)
+ {
++ gchar *viewcmd;
+ fname = my_strescape(wrapper->argv[FIRST_FILE_INDEX]);
+- gchar *viewcmd = g_strconcat(command, " ", wrapper->dir,
++ viewcmd = g_strconcat(command, " ", wrapper->dir,
+ "/", fname, NULL);
+ g_free(fname);
+ printf("viewcmd: %s\n",viewcmd);