aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2010-01-18 20:25:20 +0800
committergarga <garga@FreeBSD.org>2010-01-18 20:25:20 +0800
commit17285100bb054a8d8e76a24554dbc6f6c2135c00 (patch)
tree6bb6574b8acfd6837ea291e558b37e8aba9f8178 /archivers
parentabd669d91c5966858e2041fd069301f0a8f41ab3 (diff)
downloadfreebsd-ports-gnome-17285100bb054a8d8e76a24554dbc6f6c2135c00.tar.gz
freebsd-ports-gnome-17285100bb054a8d8e76a24554dbc6f6c2135c00.tar.zst
freebsd-ports-gnome-17285100bb054a8d8e76a24554dbc6f6c2135c00.zip
Silent some compiler warnings that could result on program abort
PR: ports/141938 (based on) Submitted by: Ted Mittelstaedt <tedm@ipinc.net>
Diffstat (limited to 'archivers')
-rw-r--r--archivers/arj/Makefile2
-rw-r--r--archivers/arj/files/patch-fardata.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index c87669e432c9..1fb7c6dfa452 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -7,7 +7,7 @@
PORTNAME= arj
PORTVERSION= 3.10.22
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= archivers
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.78_3.10%20build%2022
diff --git a/archivers/arj/files/patch-fardata.c b/archivers/arj/files/patch-fardata.c
new file mode 100644
index 000000000000..eaacfdd1e36a
--- /dev/null
+++ b/archivers/arj/files/patch-fardata.c
@@ -0,0 +1,11 @@
+--- fardata.c.orig 2010-01-18 10:06:57.000000000 -0200
++++ fardata.c 2010-01-18 10:08:24.000000000 -0200
+@@ -655,7 +655,7 @@
+ num=va_arg(args, unsigned long);
+ else if(qualifier=='h')
+ {
+-#ifdef __linux__
++#if defined(__linux__) || defined(__FreeBSD__)
+ if (flags&SIGN)
+ num=va_arg(args, int); /* num=va_arg(args, short); */
+ else