Only define TCP_FASTOPEN if not exists

This commit is contained in:
Linus Yang
2018-03-12 12:57:52 +08:00
parent 0a11c87aa5
commit ca51c60ee7
+2 -3
View File
@@ -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