[sr-dev] git:master:ab7bf76e: tcp: use macros from netinet/tcp.h to detect TCP feature

Mikko Lehto mslehto at iki.fi
Fri Jan 29 16:23:38 CET 2016


Module: kamailio
Branch: master
Commit: ab7bf76e8d7cce405d4a90b727cde6be67015c4a
URL: https://github.com/kamailio/kamailio/commit/ab7bf76e8d7cce405d4a90b727cde6be67015c4a

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Mikko Lehto <mslehto at iki.fi>
Date: 2016-01-27T19:26:46+02:00

tcp: use macros from netinet/tcp.h to detect TCP feature

makes tcpops module usable on FreeBSD 10

---

Modified: tcp_options.h

---

Diff:  https://github.com/kamailio/kamailio/commit/ab7bf76e8d7cce405d4a90b727cde6be67015c4a.diff
Patch: https://github.com/kamailio/kamailio/commit/ab7bf76e8d7cce405d4a90b727cde6be67015c4a.patch

---

diff --git a/tcp_options.h b/tcp_options.h
index f3b181d..7a134ae 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 */
 
 




More information about the sr-dev mailing list