aboutsummaryrefslogtreecommitdiff
path: root/archivers/arc
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2020-08-20 04:43:54 +0000
committerXin LI <delphij@FreeBSD.org>2020-08-20 04:43:54 +0000
commita31b2fa3c31b902cc83942d8c005a308f2a6c47d (patch)
treeff58512e867fb4391026e4767ac099985f9fb600 /archivers/arc
parent0e10ccd94bf5abc666b2f9da1adcdab416e6aaa3 (diff)
downloadports-a31b2fa3c31b902cc83942d8c005a308f2a6c47d.tar.gz
ports-a31b2fa3c31b902cc83942d8c005a308f2a6c47d.zip
Fix build.
MFH: 2020Q3 (build fix)
Notes
Notes: svn path=/head/; revision=545496
Diffstat (limited to 'archivers/arc')
-rw-r--r--archivers/arc/files/patch-arclzw.c17
-rw-r--r--archivers/arc/files/patch-arcunp.c15
2 files changed, 29 insertions, 3 deletions
diff --git a/archivers/arc/files/patch-arclzw.c b/archivers/arc/files/patch-arclzw.c
index c0f1c8996403..4ee553832413 100644
--- a/archivers/arc/files/patch-arclzw.c
+++ b/archivers/arc/files/patch-arclzw.c
@@ -1,6 +1,21 @@
--- arclzw.c.orig 2010-08-07 13:06:42 UTC
+++ arclzw.c
-@@ -560,7 +560,7 @@ decomp(squash, f, t) /* decompress a fi
+@@ -57,9 +57,11 @@ static VOID putcode();
+ #define NOT_FND 0xFFFF
+
+ extern u_char *pinbuf;
+-u_char *inbeg, *inend;
+-u_char *outbuf;
+-u_char *outbeg, *outend;
++u_char *inbeg;
++u_char *inend;
++extern u_char *outbuf;
++u_char *outbeg;
++extern u_char *outend;
+
+ static int sp; /* current stack pointer */
+ static int inflag;
+@@ -560,7 +562,7 @@ decomp(squash, f, t) /* decompress a file */
*/
if (code >= free_ent) {
if (code > free_ent) {
diff --git a/archivers/arc/files/patch-arcunp.c b/archivers/arc/files/patch-arcunp.c
index ed3f7191d744..b157130802f0 100644
--- a/archivers/arc/files/patch-arcunp.c
+++ b/archivers/arc/files/patch-arcunp.c
@@ -1,6 +1,17 @@
--- arcunp.c.orig 2010-08-07 13:06:42 UTC
+++ arcunp.c
-@@ -122,7 +122,7 @@ unpack(f, t, hdr) /* unpack an archive
+@@ -39,8 +39,8 @@ extern int lastc;
+ #define NOHIST 0 /* no relevant history */
+ #define INREP 1 /* sending a repeated value */
+
+-short crcval; /* CRC check value */
+-long stdlen; /* bytes to read */
++extern short crcval; /* CRC check value */
++extern long stdlen; /* bytes to read */
+ #if !DOS
+ static int gotcr; /* got a carriage return? */
+ #endif
+@@ -122,7 +122,7 @@ unpack(f, t, hdr) /* unpack an archive entry */
break;
default: /* unknown method */
@@ -9,7 +20,7 @@
printf("I don't know how to unpack file %s\n", hdr->name);
printf("I think you need a newer version of ARC\n");
nerrs++;
-@@ -134,7 +134,7 @@ unpack(f, t, hdr) /* unpack an archive
+@@ -134,7 +134,7 @@ unpack(f, t, hdr) /* unpack an archive entry */
/* cleanups common to all methods */
if (crcval != hdr->crc) {