diff --git a/dns/dns2tcp/files/patch-client_main.c b/dns/dns2tcp/files/patch-client_main.c new file mode 100644 index 000000000000..4c23db06f25b --- /dev/null +++ b/dns/dns2tcp/files/patch-client_main.c @@ -0,0 +1,11 @@ +--- client/main.c.orig 2020-08-28 19:28:55 UTC ++++ client/main.c +@@ -36,6 +36,8 @@ + #include "myerror.h" + #include "dns.h" + ++int debug; ++ + /** + * @brief main part + * @retval 0 on success diff --git a/dns/dns2tcp/files/patch-common_includes_debug.h b/dns/dns2tcp/files/patch-common_includes_debug.h new file mode 100644 index 000000000000..d8fe8062d212 --- /dev/null +++ b/dns/dns2tcp/files/patch-common_includes_debug.h @@ -0,0 +1,11 @@ +--- common/includes/debug.h.orig 2020-08-28 19:24:48 UTC ++++ common/includes/debug.h +@@ -24,7 +24,7 @@ + #include + #include + +-int debug; ++extern int debug; + + #ifndef _WIN32 + #define DPRINTF(level, fmt, args...) \ diff --git a/dns/dns2tcp/files/patch-server_main.c b/dns/dns2tcp/files/patch-server_main.c new file mode 100644 index 000000000000..cbcaf7f39f29 --- /dev/null +++ b/dns/dns2tcp/files/patch-server_main.c @@ -0,0 +1,11 @@ +--- server/main.c.orig 2020-08-28 19:28:55 UTC ++++ server/main.c +@@ -42,6 +42,8 @@ + #include "myerror.h" + #include "log.h" + ++int debug; ++ + int detach_process(t_conf *conf) + { + int fd;