summaryrefslogtreecommitdiff
path: root/archivers/zoo/files/patch-zoodel.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-zoodel.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-zoodel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/archivers/zoo/files/patch-zoodel.c b/archivers/zoo/files/patch-zoodel.c
new file mode 100644
index 000000000000..f01eb93146e2
--- /dev/null
+++ b/archivers/zoo/files/patch-zoodel.c
@@ -0,0 +1,14 @@
+--- zoodel.c.orig 1991-07-16 15:58:46 UTC
++++ zoodel.c
+@@ -138,7 +138,11 @@ if (*option == 'g') {
+
+ /* read archive header */
+ frd_zooh (&zoo_header, zoo_file);
++#ifdef __LP64__
++ if ((int)(zoo_header.zoo_start + zoo_header.zoo_minus) != 0)
++#else
+ if ((zoo_header.zoo_start + zoo_header.zoo_minus) != 0L)
++#endif
+ prterror ('f', failed_consistency);
+ if (ver_too_high (&zoo_header))
+ prterror ('f', wrong_version, zoo_header.major_ver, zoo_header.minor_ver);