[TD-109] <feature>: support mac compile with xcode11.4 in travis CI. redefine MSG_NOSIGNAL

This commit is contained in:
Shuduo Sang 2021-01-26 14:42:04 +08:00
parent c375572048
commit 5d0605b933
1 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,12 @@ extern "C" {
typedef int(*__compar_fn_t)(const void *, const void *); typedef int(*__compar_fn_t)(const void *, const void *);
// for send function in tsocket.c // for send function in tsocket.c
// #define MSG_NOSIGNAL 0 #if defined(MSG_NOSIGNAL)
#undef MSG_NOSIGNAL
#endif
#define MSG_NOSIGNAL 0
#define SO_NO_CHECK 0x1234 #define SO_NO_CHECK 0x1234
#define SOL_TCP 0x1234 #define SOL_TCP 0x1234
#define TCP_KEEPIDLE 0x1234 #define TCP_KEEPIDLE 0x1234