aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/par2cmdline
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2011-06-23 16:37:05 +0800
committermartymac <martymac@FreeBSD.org>2011-06-23 16:37:05 +0800
commit30d2757c35b92ce84c24f2db78bfc2fd2691d289 (patch)
tree19301a9a611ea061876aa500ae5888492b784cde /archivers/par2cmdline
parentc697b493689a9fdf5050b293115563dd776401bd (diff)
downloadfreebsd-ports-gnome-30d2757c35b92ce84c24f2db78bfc2fd2691d289.tar.gz
freebsd-ports-gnome-30d2757c35b92ce84c24f2db78bfc2fd2691d289.tar.zst
freebsd-ports-gnome-30d2757c35b92ce84c24f2db78bfc2fd2691d289.zip
Fix build with clang
Diffstat (limited to 'archivers/par2cmdline')
-rw-r--r--archivers/par2cmdline/Makefile2
-rw-r--r--archivers/par2cmdline/files/patch-par2fileformat.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/archivers/par2cmdline/Makefile b/archivers/par2cmdline/Makefile
index bac3ff357743..191d75b5f607 100644
--- a/archivers/par2cmdline/Makefile
+++ b/archivers/par2cmdline/Makefile
@@ -7,7 +7,7 @@
PORTNAME= par2cmdline
PORTVERSION= 0.4
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= archivers
MASTER_SITES= SF/parchive/${PORTNAME}/${PORTVERSION}
diff --git a/archivers/par2cmdline/files/patch-par2fileformat.h b/archivers/par2cmdline/files/patch-par2fileformat.h
new file mode 100644
index 000000000000..8b2a7642cddf
--- /dev/null
+++ b/archivers/par2cmdline/files/patch-par2fileformat.h
@@ -0,0 +1,11 @@
+--- par2fileformat.h.orig 2011-06-23 08:31:37.639455018 +0200
++++ par2fileformat.h 2011-06-23 08:38:29.287362503 +0200
+@@ -84,7 +84,7 @@
+ PACKET_HEADER header;
+ // Body
+ MD5Hash fileid; // MD5hash of file_hash_16k, file_length, file_name
+- FILEVERIFICATIONENTRY entries[];
++ FILEVERIFICATIONENTRY entries[0];
+ } PACKED;
+
+ // The file description packet is used to record the name of the file,