Fix compile error

This commit is contained in:
Nick Peng
2019-11-24 14:24:50 +08:00
parent 528d5c6ccc
commit 9f27bb9b70
2 changed files with 11 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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