File: 01_fix_gcc10_issues.patch.

package info (click to toggle)
dns2tcp 0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, trixie
  • size: 1,116 kB
  • sloc: ansic: 5,303; sh: 3,609; makefile: 65
file content (42 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: fixes gcc-10 build issues
Author: Antoni Villalonga <antoni@friki.cat>
Last-Update: 2020-08-02
Index: dns2tcp/client/main.c
===================================================================
--- dns2tcp.orig/client/main.c
+++ dns2tcp/client/main.c
@@ -36,6 +36,8 @@
 #include "myerror.h"
 #include "dns.h"
 
+int debug;
+
 /**
  * @brief main part
  * @retval 0 on success
Index: dns2tcp/common/includes/debug.h
===================================================================
--- dns2tcp.orig/common/includes/debug.h
+++ dns2tcp/common/includes/debug.h
@@ -24,7 +24,7 @@
 #include <stdio.h>
 #include <time.h>
 
-int debug;
+extern int debug;
 
 #ifndef _WIN32
 #define DPRINTF(level, fmt, args...)  \
Index: dns2tcp/server/main.c
===================================================================
--- dns2tcp.orig/server/main.c
+++ dns2tcp/server/main.c
@@ -42,6 +42,8 @@
 #include "myerror.h"
 #include "log.h"
 
+int debug;
+
 int			detach_process(t_conf *conf)
 {
   int			fd;