summaryrefslogtreecommitdiff
path: root/network/webalizer/gcc10.patch
blob: 66f4363d5d5321f9224132d72ef61afa7a53a186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -Naur webalizer-2.23-08.orig/dns_resolv.c webalizer-2.23-08/dns_resolv.c
--- webalizer-2.23-08.orig/dns_resolv.c	2013-02-26 06:37:27.000000000 +0100
+++ webalizer-2.23-08/dns_resolv.c	2021-03-23 20:18:10.825092000 +0100
@@ -78,11 +78,11 @@
 
 struct   dns_child child[MAXCHILD];            /* DNS child pipe data      */
 
-DNODEPTR host_table[MAXHASH];                  /* hostname/ip hash table   */
+extern DNODEPTR host_table[MAXHASH];           /* hostname/ip hash table   */
 
-char     buffer[BUFSIZE];                      /* log file record buffer   */
-char     tmp_buf[BUFSIZE];                     /* used to temp save above  */
-struct   utsname system_info;                  /* system info structure    */
+extern char     buffer[BUFSIZE];               /* log file record buffer   */
+extern char     tmp_buf[BUFSIZE];              /* used to temp save above  */
+extern struct   utsname system_info;           /* system info structure    */
 
 int      raiseSigChild = 1;