2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Replace platform ISC_PLATFORM_HAVETFO with config ENABLE_TCP_FASTOPEN

This commit is contained in:
Ondřej Surý
2018-09-05 12:34:10 +02:00
parent 092edb5b44
commit f1d3055d7b
6 changed files with 19 additions and 77 deletions

View File

@@ -85,7 +85,7 @@
#include <sys/utsname.h>
#endif
#ifdef ISC_PLATFORM_HAVETFO
#ifdef ENABLE_TCP_FASTOPEN
#include <netinet/tcp.h>
#endif
@@ -5464,7 +5464,7 @@ isc__socket_filter(isc_socket_t *sock0, const char *filter) {
*/
static void
set_tcp_fastopen(isc__socket_t *sock, unsigned int backlog) {
#if defined(ISC_PLATFORM_HAVETFO) && defined(TCP_FASTOPEN)
#if defined(ENABLE_TCP_FASTOPEN) && defined(TCP_FASTOPEN)
char strbuf[ISC_STRERRORSIZE];
/*