File: fix_ftbfs.patch

package info (click to toggle)
arc 5.21q-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 640 kB
  • sloc: ansic: 6,630; makefile: 323
file content (33 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (3)
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
33
Description: Fix FTBFS with gcc-10
Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Origin: vendor
Forwarded: no
Last-Update: 2020-05-25

---
--- 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