From cd98427ebda19c8bf295651347039c542658464a Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 29 Aug 2018 01:38:43 -0700 Subject: [PATCH] Add missing fast open headers --- src/tunnel.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tunnel.h b/src/tunnel.h index 08d368bc..616778b4 100644 --- a/src/tunnel.h +++ b/src/tunnel.h @@ -29,6 +29,10 @@ #include #endif +#ifdef __MINGW32__ +#include "winsock.h" +#endif + #include "crypto.h" #include "jconf.h" @@ -72,6 +76,10 @@ typedef struct remote_ctx { typedef struct remote { int fd; +#ifdef TCP_FASTOPEN_WINSOCK + OVERLAPPED olap; + int connect_ex_done; +#endif buffer_t *buf; struct remote_ctx *recv_ctx; struct remote_ctx *send_ctx;