TFO: Support compilation on Linus platforms which define TCP_FASTOPEN but not MSG_FAS...
[exim.git] / src / OS / os.h-Linux
index 6400e798e24cfd53b2333cdc5b239ca278e442ce..cc1cef99be849c10d487aef94e5a767f02d95b38 100644 (file)
@@ -69,5 +69,11 @@ then change the 0 to 1 in the next block. */
 # define EXIM_HAVE_OPENAT
 #endif
 
+#include <netinet/tcp.h>       /* for TCP_FASTOPEN */
+#include <sys/socket.h>                /* for MSG_FASTOPEN */
+#if defined(TCP_FASTOPEN) && !defined(MSG_FASTOPEN)
+# define MSG_FASTOPEN 0x20000000
+#endif
+
 
 /* End */