TFO: Support compilation on systems which define TCP_FASTOPEN but not MSG_FASTOPEN
[exim.git] / src / src / ip.c
index b744f5d4c101b88e4c7fe1500d8fc3019d089c8d..a8230a149d64e76cab2ee76e09597fd95281fc79 100644 (file)
@@ -224,7 +224,7 @@ callout_address = string_sprintf("[%s]:%d", address, port);
 sigalrm_seen = FALSE;
 if (timeout > 0) alarm(timeout);
 
-#ifdef TCP_FASTOPEN
+#if defined(TCP_FASTOPEN) && defined(MSG_FASTOPEN)
 /* TCP Fast Open, if the system has a cookie from a previous call to
 this peer, can send data in the SYN packet.  The peer can send data
 before it gets our ACK of its SYN,ACK - the latter is useful for