slackbuilds_ponce/network/webalizer/gcc10.patch
Matteo Bernardini 4c40e21dc4 network/webalizer: Patched for gcc-10.x.
Thanks to ricky_cardo on LQ!

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2021-04-18 00:08:25 -05:00

19 lines
995 B
Diff

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;