dns/dns2tcp: fix build on recent curent
This commit is contained in:
parent
ea7cc70e0b
commit
6cacd00970
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546808
11
dns/dns2tcp/files/patch-client_main.c
Normal file
11
dns/dns2tcp/files/patch-client_main.c
Normal file
@ -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
|
11
dns/dns2tcp/files/patch-common_includes_debug.h
Normal file
11
dns/dns2tcp/files/patch-common_includes_debug.h
Normal file
@ -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 <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
-int debug;
|
||||
+extern int debug;
|
||||
|
||||
#ifndef _WIN32
|
||||
#define DPRINTF(level, fmt, args...) \
|
11
dns/dns2tcp/files/patch-server_main.c
Normal file
11
dns/dns2tcp/files/patch-server_main.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user