From 6cacd009708c3fd85d6f61c5d587428e5036440f Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Fri, 28 Aug 2020 19:31:35 +0000 Subject: [PATCH] dns/dns2tcp: fix build on recent curent --- dns/dns2tcp/files/patch-client_main.c | 11 +++++++++++ dns/dns2tcp/files/patch-common_includes_debug.h | 11 +++++++++++ dns/dns2tcp/files/patch-server_main.c | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 dns/dns2tcp/files/patch-client_main.c create mode 100644 dns/dns2tcp/files/patch-common_includes_debug.h create mode 100644 dns/dns2tcp/files/patch-server_main.c 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;