summaryrefslogtreecommitdiff
path: root/archivers/zoo/files/patch-zoopack.c
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-07-01 10:27:06 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-07-01 10:27:06 +0000
commitf27e17c455193fdd4b103f46eb98e13cf8394f51 (patch)
treea607948e06d36e6b0c7f97fde1a77a062d760bc6 /archivers/zoo/files/patch-zoopack.c
parentUpdate to 0.9.42 (diff)
Really fix `archivers/zoo' on 64-bit machines. When PR 162804 had been
committed by gabor@ back in 2011, only two of the proposed four patches supplied were actually included; the patches for zoodel.c and zoopack.c were somehow missed. PR: 162804, 240982
Notes
Notes: svn path=/head/; revision=540948
Diffstat (limited to '')
-rw-r--r--archivers/zoo/files/patch-zoopack.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/archivers/zoo/files/patch-zoopack.c b/archivers/zoo/files/patch-zoopack.c
new file mode 100644
index 000000000000..a3b569a2e160
--- /dev/null
+++ b/archivers/zoo/files/patch-zoopack.c
@@ -0,0 +1,14 @@
+--- zoopack.c.orig 1993-05-01 03:59:21 UTC
++++ zoopack.c
+@@ -139,7 +139,11 @@ if (zoo_file == NOFILE)
+ /* Read the header of the old archive. */
+ frd_zooh(&old_zoo_header, zoo_file);
+
++#ifdef __LP64__
++if ((int)(old_zoo_header.zoo_start + old_zoo_header.zoo_minus) != 0) {
++#else
+ if ((old_zoo_header.zoo_start + old_zoo_header.zoo_minus) != 0L) {
++#endif
+ prterror ('w', failed_consistency);
+ ++bad_header; /* remember for future error message */
+ }