1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Description: Fix FTBFS with gcc-10
Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
--- arc-5.21q.orig/arclzw.c
+++ arc-5.21q/arclzw.c
@@ -56,8 +56,8 @@ static VOID putcode();
extern u_char *pinbuf;
u_char *inbeg, *inend;
-u_char *outbuf;
-u_char *outbeg, *outend;
+extern u_char *outbuf, *outend;
+u_char *outbeg;
static int sp; /* current stack pointer */
static int inflag;
--- arc-5.21q.orig/arcunp.c
+++ arc-5.21q/arcunp.c
@@ -37,8 +37,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
|