Package: webalizer Version: 2.23.08-3.1 Followup-For: Bug #957923 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu hirsute ubuntu-patch X-Debbugs-Cc: lo...@ubuntu.com Control: tags -1 patch
Hi, In Ubuntu, the attached patch was applied to achieve the following: * d/p/gcc-10.patch: Fix compilation with GCC 10. Thanks for considering the patch. Logan
diff -Nru webalizer-2.23.08/debian/patches/gcc-10.patch webalizer-2.23.08/debian/patches/gcc-10.patch --- webalizer-2.23.08/debian/patches/gcc-10.patch 1969-12-31 19:00:00.000000000 -0500 +++ webalizer-2.23.08/debian/patches/gcc-10.patch 2021-01-07 22:26:24.000000000 -0500 @@ -0,0 +1,18 @@ +--- a/dns_resolv.c ++++ b/dns_resolv.c +@@ -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 -Nru webalizer-2.23.08/debian/patches/series webalizer-2.23.08/debian/patches/series --- webalizer-2.23.08/debian/patches/series 2018-10-15 11:03:02.000000000 -0400 +++ webalizer-2.23.08/debian/patches/series 2021-01-07 22:24:40.000000000 -0500 @@ -15,3 +15,4 @@ 24_gettext_generated.diff 25_add_convertlang2po.diff 26_gettext_po_files.diff +gcc-10.patch