summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-03-03 21:13:04 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2021-03-03 21:13:14 +0000
commit7dd124d96f48b7e8c5b3426b528b08390647c459 (patch)
tree31e90680df06b727bac1f2a1f90a690a9a7e0ef4 /app-admin/webalizer/files
parentnet-analyzer/scapy: Fix libc library search (diff)
downloadgentoo-7dd124d96f48b7e8c5b3426b528b08390647c459.tar.gz
gentoo-7dd124d96f48b7e8c5b3426b528b08390647c459.tar.bz2
gentoo-7dd124d96f48b7e8c5b3426b528b08390647c459.zip
app-admin/webalizer: tweak for gcc-10
Fixed-by: Alexandros C. Couloumbis Closes: https://bugs.gentoo.org/737694 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'app-admin/webalizer/files')
-rw-r--r--app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch b/app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch
new file mode 100644
index 000000000000..4110a0b4bb8e
--- /dev/null
+++ b/app-admin/webalizer/files/webalizer-2.23.08-gcc-10.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/737694
+--- a/dns_resolv.c 2013-02-26 07:37:27.000000000 +0200
++++ b/dns_resolv.c 2020-08-17 20:33:32.000000000 +0300
+@@ -78,11 +78,11 @@ DBC *geo_dbc = NULL;
+
+ 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;
+