TFO: Support compilation on Linus platforms which define TCP_FASTOPEN but not MSG_FAS...
[exim.git] / src / OS / os.h-Linux
index 05c153e2c1aa68aacb800b7de2db60195f37453a..cc1cef99be849c10d487aef94e5a767f02d95b38 100644 (file)
@@ -65,5 +65,15 @@ then change the 0 to 1 in the next block. */
 # define LLONG_MAX LONG_LONG_MAX
 #endif
 
+#if _POSIX_C_SOURCE >= 200809L || _ATFILE_SOUCE
+# 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 */