[sr-dev] git:master:6627098e: tcp: include netinet/tcp.h to make certain macros available

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


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

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Mikko Lehto <mslehto at iki.fi>
Date: 2016-01-29T14:55:34+02:00

tcp: include netinet/tcp.h to make certain macros available

Following are tested: TCP_KEEPINTVL, TCP_KEEPIDLE, TCP_KEEPCNT

---

Modified: tcp_options.h

---

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

---

diff --git a/tcp_options.h b/tcp_options.h
index 7a134ae..d8da5f3 100644
--- a/tcp_options.h
+++ b/tcp_options.h
@@ -23,6 +23,7 @@
 
 #ifdef USE_TCP
 
+#include <netinet/tcp.h>
 #ifndef NO_TCP_ASYNC
 #define TCP_ASYNC /* enabled async mode */
 #endif




More information about the sr-dev mailing list