summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-06 10:29:20 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-06 10:29:20 +0000
commitd73e5c4efb3ce395e82ef7f4f88afc2b57e52230 (patch)
treec1908636940a79cd1426b6db41340f87b2c290fe /pjsip/include
parentbeddeea87ffeabce44354b7016578f577d7887dc (diff)
Fixed ticket #216: Build error when PJ_HAS_TCP is set to zero (thanks ChenHuan)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1159 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsip/sip_transport_tcp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_transport_tcp.h b/pjsip/include/pjsip/sip_transport_tcp.h
index ff1af7a9..abadf171 100644
--- a/pjsip/include/pjsip/sip_transport_tcp.h
+++ b/pjsip/include/pjsip/sip_transport_tcp.h
@@ -26,6 +26,11 @@
#include <pjsip/sip_transport.h>
+
+/* Only declare the API if PJ_HAS_TCP is true */
+#if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0
+
+
PJ_BEGIN_DECL
/**
@@ -112,4 +117,6 @@ PJ_END_DECL
* @}
*/
+#endif /* PJ_HAS_TCP */
+
#endif /* __PJSIP_TRANSPORT_TCP_H__ */