summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-01-24 16:52:01 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-01-24 16:52:01 +0000
commit4c0899659502d1ab14f30b02ec78261728caf9c8 (patch)
tree0b32f22aaeff87ccd2d026fd38d107f7e686a17e
parent0d28287ca56d1545b8e2fdeab6616a674e633236 (diff)
TFO: Support compilation on Linus platforms which define TCP_FASTOPEN but not MSG_FASTOPEN
-rw-r--r--src/OS/os.h-Linux2
-rw-r--r--test/scripts/2100-OpenSSL/21522
2 files changed, 3 insertions, 1 deletions
diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux
index 510865c66..cc1cef99b 100644
--- a/src/OS/os.h-Linux
+++ b/src/OS/os.h-Linux
@@ -69,6 +69,8 @@ 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
diff --git a/test/scripts/2100-OpenSSL/2152 b/test/scripts/2100-OpenSSL/2152
index 329e42051..12a482a93 100644
--- a/test/scripts/2100-OpenSSL/2152
+++ b/test/scripts/2100-OpenSSL/2152
@@ -2,7 +2,7 @@
#
# If all works you'll not see any difference. To enable in the
# kernel, 'sudo sh -c "echo 3 > /proc/sys/net/ipv4/tcp_fastopen"'.
-# A packet capture on the loopback interface will show the TFU
+# A packet capture on the loopback interface will show the TFO
# option on the SYN, but the fast-output SMTP banner will not
# be seen unless you also deliberately emulate a long path:
# 'sudo tc qdisc add dev lo root netem delay 100ms'