summarylogtreecommitdiffstats
path: root/squidguard-1.6.0-gcc10.patch
blob: fd41a0f3da9f1809e61396717b1bc741dee4de83 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- src/y.tab.c.bison	2020-03-08 20:05:00.750000000 +0300
+++ src/y.tab.c.bison	2020-03-08 20:04:42.160000000 +0300
@@ -217,7 +217,7 @@
 
 #include "sgEx.h"
 
-FILE *yyin, *yyout;
+extern FILE *yyin, *yyout;
 char *configFile;
 
 int numTimeElements;
--- src/sg.h.in	2020-03-08 20:02:46.900000000 +0300
+++ src/sg.h.in	2020-03-08 20:03:22.110000000 +0300
@@ -115,7 +115,7 @@
 #define REDIRECT_PERMANENT   "301:"
 #define REDIRECT_TEMPORARILY "302:"
 
-char *progname;
+extern char *progname;
 
 struct LogFileStat {
   char *name;
@@ -337,7 +337,7 @@
   struct AclDest *next;
 };
 
-int lineno;
+extern int lineno;
 
 char   *sgParseRedirect	__P((char *, struct SquidInfo *, struct Acl *, struct AclDest *));
 char   *sgAclAccess __P((struct Source *, struct Acl *, struct SquidInfo *));
--- src/main.c.in	2020-03-08 20:10:55.650000000 +0300
+++ src/main.c.in	2020-03-08 20:11:13.590000000 +0300
@@ -21,6 +21,9 @@
 #include <syslog.h>
 #endif
 
+char *progname;
+int lineno;
+
 struct Setting *lastSetting = NULL;
 struct Setting *Setting = NULL;                        /* linked list, Calloc */
 
--- src/sg.y.in	2020-03-08 20:14:46.180000000 +0300
+++ src/sg.y.in	2020-03-08 20:14:57.110000000 +0300
@@ -35,7 +35,7 @@
 
 #include "sgEx.h"
 
-FILE *yyin, *yyout;
+extern FILE *yyin, *yyout;
 char *configFile;
 
 int numTimeElements;