SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
archivers/arc/patches/patch-arclzw_c
Normal file
26
archivers/arc/patches/patch-arclzw_c
Normal file
|
@ -0,0 +1,26 @@
|
|||
Fix "-fno-common" build, from FreeBSD
|
||||
|
||||
Index: arclzw.c
|
||||
--- arclzw.c.orig
|
||||
+++ arclzw.c
|
||||
@@ -58,8 +58,9 @@ static VOID putcode();
|
||||
|
||||
extern u_char *pinbuf;
|
||||
u_char *inbeg, *inend;
|
||||
-u_char *outbuf;
|
||||
-u_char *outbeg, *outend;
|
||||
+extern u_char *outbuf;
|
||||
+u_char *outbeg;
|
||||
+extern u_char *outend;
|
||||
|
||||
static int sp; /* current stack pointer */
|
||||
static int inflag;
|
||||
@@ -560,7 +561,7 @@ decomp(squash, f, t) /* decompress a file */
|
||||
*/
|
||||
if (code >= free_ent) {
|
||||
if (code > free_ent) {
|
||||
- if (warn) {
|
||||
+ if (arcwarn) {
|
||||
printf("Corrupted compressed file.\n");
|
||||
printf("Invalid code %d when max is %d.\n",
|
||||
code, free_ent);
|
Loading…
Add table
Add a link
Reference in a new issue