diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/webalizer/gcc10.patch | 19 | ||||
-rw-r--r-- | network/webalizer/webalizer.SlackBuild | 2 |
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 \ |