From ab7bf76e8d7cce405d4a90b727cde6be67015c4a Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Wed, 27 Jan 2016 19:26:46 +0200 Subject: [PATCH] tcp: use macros from netinet/tcp.h to detect TCP feature makes tcpops module usable on FreeBSD 10 --- tcp_options.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tcp_options.h b/tcp_options.h index f3b181d8600..7a134aeab45 100644 --- a/tcp_options.h +++ b/tcp_options.h @@ -74,24 +74,24 @@ /* keepintvl */ #ifndef NO_TCP_KEEPINTVL -#ifdef __OS_linux +#ifdef TCP_KEEPINTVL #define HAVE_TCP_KEEPINTVL -#endif /* __OS_ */ -#endif /* NO_TCP_KEEPIDLE */ +#endif /* TCP_KEEPINTVL */ +#endif /* NO_TCP_KEEPINTVL */ /* keepidle */ #ifndef NO_TCP_KEEPIDLE -#ifdef __OS_linux +#ifdef TCP_KEEPIDLE #define HAVE_TCP_KEEPIDLE -#endif /* __OS_*/ +#endif /* TCP_KEEPIDLE*/ #endif /* NO_TCP_KEEPIDLE */ /* keepcnt */ #ifndef NO_TCP_KEEPCNT -#ifdef __OS_linux +#ifdef TCP_KEEPCNT #define HAVE_TCP_KEEPCNT -#endif /* __OS_ */ +#endif /* TCP_KEEPCNT */ #endif /* NO_TCP_KEEPCNT */