File: fix_ftbfs.patch

package info (click to toggle)
webdruid 0.5.4-16
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,428 kB
  • sloc: ansic: 10,821; sh: 181; makefile: 112
file content (24 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix ftbfs with GCC-10

Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Bug-Debian: https://bugs.debian.org/957927
Forwarded: no

---

--- webdruid-0.5.4.orig/dns_resolv.c
+++ webdruid-0.5.4/dns_resolv.c
@@ -122,11 +122,9 @@ int      dns_fd    = 0;
 
 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 struct   utsname system_info;           /* system info structure    */
 
 int      raiseSigChild = 1;