From f27e17c455193fdd4b103f46eb98e13cf8394f51 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 1 Jul 2020 10:27:06 +0000 Subject: 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 --- archivers/zoo/files/patch-zoodel.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 archivers/zoo/files/patch-zoodel.c (limited to 'archivers/zoo/files/patch-zoodel.c') 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); -- cgit v1.2.3