diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/OS/os.h-Linux | 3 | ||||
-rw-r--r-- | src/src/smtp_out.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux index 57034649c..f6d35772b 100644 --- a/src/OS/os.h-Linux +++ b/src/OS/os.h-Linux @@ -72,11 +72,14 @@ then change the 0 to 1 in the next block. */ # define EXIM_HAVE_OPENAT #endif +/* TCP Fast Open support */ + #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 +#define EXIM_HAVE_TCPI_UNACKED /* End */ diff --git a/src/src/smtp_out.c b/src/src/smtp_out.c index d5bf262be..ee39cb2fb 100644 --- a/src/src/smtp_out.c +++ b/src/src/smtp_out.c @@ -144,7 +144,7 @@ return TRUE; static void tfo_out_check(int sock) { -# ifdef TCP_INFO +# if defined(TCP_INFO) && defined(EXIM_HAVE_TCPI_UNACKED) struct tcp_info tinfo; socklen_t len = sizeof(tinfo); |