From 9f27bb9b70b086e02e6f2420d59c874ddbc15f85 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sun, 24 Nov 2019 14:24:50 +0800 Subject: [PATCH] Fix compile error --- src/dns_client.c | 3 --- src/util.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/dns_client.c b/src/dns_client.c index 412c048..4dfad45 100644 --- a/src/dns_client.c +++ b/src/dns_client.c @@ -63,9 +63,6 @@ #define SOCKET_PRIORITY (6) #define SOCKET_IP_TOS (IPTOS_LOWDELAY | IPTOS_RELIABILITY) -#ifndef TCP_FASTOPEN_CONNECT -#define TCP_FASTOPEN_CONNECT 30 -#endif /* ECS info */ struct dns_client_ecs { diff --git a/src/util.h b/src/util.h index f2b7c09..9f1cd0d 100644 --- a/src/util.h +++ b/src/util.h @@ -11,6 +11,17 @@ extern "C" { #endif /*__cplusplus */ +#ifndef TCP_FASTOPEN_CONNECT +#define TCP_FASTOPEN_CONNECT 30 +#endif +#ifndef TCP_THIN_LINEAR_TIMEOUTS +#define TCP_THIN_LINEAR_TIMEOUTS 16 +#endif + +#ifndef TCP_THIN_DUPACK +#define TCP_THIN_DUPACK 17 +#endif + #define PORT_NOT_DEFINED -1 #define MAX_IP_LEN 64