From 1f5f08bf1e583292981c83a09bfb2b275a288329 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 3 May 2014 15:18:44 +0800 Subject: [PATCH] fix the building issue --- src/include.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include.h b/src/include.h index 3bd2985e..4f303776 100644 --- a/src/include.h +++ b/src/include.h @@ -1,6 +1,9 @@ #ifndef _INCLUDE_H #define _INCLUDE_H +// only enable TCP_FASTOPEN on linux +#if __linux + /* conditional define for TCP_FASTOPEN */ #ifndef TCP_FASTOPEN #define TCP_FASTOPEN 23 @@ -11,6 +14,8 @@ #define MSG_FASTOPEN 0x20000000 #endif +#endif + int udprelay_init(const char *server_host, const char *server_port, #ifdef UDPRELAY_LOCAL const char *remote_host, const char *remote_port,