diff --git a/lib/isc/netmgr/netmgr.c b/lib/isc/netmgr/netmgr.c index 9ed966a6ed..4e654e11d8 100644 --- a/lib/isc/netmgr/netmgr.c +++ b/lib/isc/netmgr/netmgr.c @@ -2283,6 +2283,10 @@ isc__nm_socket_dontfrag(uv_os_sock_t fd, sa_family_t sa_family) { #define TIMEOUT_TYPE unsigned int #define TIMEOUT_DIV 1 #define TIMEOUT_OPTNAME TCP_USER_TIMEOUT +#elif defined(TCP_KEEPINIT) +#define TIMEOUT_TYPE int +#define TIMEOUT_DIV 1000 +#define TIMEOUT_OPTNAME TCP_KEEPINIT #endif isc_result_t diff --git a/lib/isc/tests/tcp_quota_test.c b/lib/isc/tests/tcp_quota_test.c index 0602dea28a..849213b677 100644 --- a/lib/isc/tests/tcp_quota_test.c +++ b/lib/isc/tests/tcp_quota_test.c @@ -9,7 +9,7 @@ * information regarding copyright ownership. */ -#if HAVE_CMOCKA && defined(__linux__) +#if HAVE_CMOCKA #include /* IWYU pragma: keep */ #include #include diff --git a/lib/isc/tests/tcp_test.c b/lib/isc/tests/tcp_test.c index 4c4fea0532..a27ab80ebb 100644 --- a/lib/isc/tests/tcp_test.c +++ b/lib/isc/tests/tcp_test.c @@ -9,7 +9,7 @@ * information regarding copyright ownership. */ -#if HAVE_CMOCKA && defined(__linux__) +#if HAVE_CMOCKA #include /* IWYU pragma: keep */ #include #include diff --git a/lib/isc/tests/tcpdns_test.c b/lib/isc/tests/tcpdns_test.c index c21a7cb73c..2145964592 100644 --- a/lib/isc/tests/tcpdns_test.c +++ b/lib/isc/tests/tcpdns_test.c @@ -9,7 +9,7 @@ * information regarding copyright ownership. */ -#if HAVE_CMOCKA && defined(__linux__) +#if HAVE_CMOCKA #include /* IWYU pragma: keep */ #include #include diff --git a/lib/isc/tests/udp_test.c b/lib/isc/tests/udp_test.c index b3062cc465..a1a99314e2 100644 --- a/lib/isc/tests/udp_test.c +++ b/lib/isc/tests/udp_test.c @@ -9,7 +9,7 @@ * information regarding copyright ownership. */ -#if HAVE_CMOCKA && defined(__linux__) +#if HAVE_CMOCKA #include /* IWYU pragma: keep */ #include #include