aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-03-23 20:20:58 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-18 00:08:25 -0500
commit4c40e21dc4a3cc6466b64071420b1465115582c3 (patch)
tree454e9265469f69e1f486d614a03fc46221ff8d22 /network
parentafe5ce3c5b701e11aac5633a1952e002c33ee588 (diff)
network/webalizer: Patched for gcc-10.x.
Thanks to ricky_cardo on LQ! Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/webalizer/gcc10.patch19
-rw-r--r--network/webalizer/webalizer.SlackBuild2
2 files changed, 21 insertions, 0 deletions
diff --git a/network/webalizer/gcc10.patch b/network/webalizer/gcc10.patch
new file mode 100644
index 0000000000000..66f4363d5d532
--- /dev/null
+++ b/network/webalizer/gcc10.patch
@@ -0,0 +1,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;
+
diff --git a/network/webalizer/webalizer.SlackBuild b/network/webalizer/webalizer.SlackBuild
index a4fa981af5f3b..f97bb97d982af 100644
--- a/network/webalizer/webalizer.SlackBuild
+++ b/network/webalizer/webalizer.SlackBuild
@@ -71,6 +71,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+patch -p1 < $CWD/gcc10.patch
+
CFLAGS="$SLKCFLAGS" \
CXFLAGS="$SLKCFLAGS" \
./configure \