SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
34
archivers/arc/patches/patch-arcunp_c
Normal file
34
archivers/arc/patches/patch-arcunp_c
Normal file
|
@ -0,0 +1,34 @@
|
|||
Fix "-fno-common" build, from FreeBSD
|
||||
|
||||
Index: arcunp.c
|
||||
--- arcunp.c.orig
|
||||
+++ arcunp.c
|
||||
@@ -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 */
|
||||
- if (warn) {
|
||||
+ if (arcwarn) {
|
||||
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 entry */
|
||||
/* cleanups common to all methods */
|
||||
|
||||
if (crcval != hdr->crc) {
|
||||
- if (warn || kludge) {
|
||||
+ if (arcwarn || kludge) {
|
||||
printf("WARNING: File %s fails CRC check\n", hdr->name);
|
||||
nerrs++;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue