From ca51c60ee7f004ccb3d51c9e71abd0f50b5ebfb0 Mon Sep 17 00:00:00 2001 From: Linus Yang Date: Mon, 12 Mar 2018 12:57:52 +0800 Subject: [PATCH] Only define TCP_FASTOPEN if not exists --- src/winsock.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/winsock.h b/src/winsock.h index 0b2a7c21..50c8c168 100644 --- a/src/winsock.h +++ b/src/winsock.h @@ -78,10 +78,9 @@ // Check if ConnectEx supported in header #ifdef WSAID_CONNECTEX // Hardcode TCP fast open option -#ifdef TCP_FASTOPEN -#undef TCP_FASTOPEN -#endif +#ifndef TCP_FASTOPEN #define TCP_FASTOPEN 15 +#endif // Enable TFO support #define TCP_FASTOPEN_WINSOCK 1 #endif