diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-06 10:29:20 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-06 10:29:20 +0000 |
commit | d73e5c4efb3ce395e82ef7f4f88afc2b57e52230 (patch) | |
tree | c1908636940a79cd1426b6db41340f87b2c290fe /pjsip-apps/src/samples/pjsip-perf.c | |
parent | beddeea87ffeabce44354b7016578f577d7887dc (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-apps/src/samples/pjsip-perf.c')
-rw-r--r-- | pjsip-apps/src/samples/pjsip-perf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/pjsip-perf.c b/pjsip-apps/src/samples/pjsip-perf.c index ae7d0ee1..264c2065 100644 --- a/pjsip-apps/src/samples/pjsip-perf.c +++ b/pjsip-apps/src/samples/pjsip-perf.c @@ -771,7 +771,9 @@ static pj_status_t init_sip() if (app.local_port != 0) addrname.port = app.local_port; - if (app.use_tcp) { + if (0) { +#if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 + } else if (app.use_tcp) { pj_sockaddr_in local_addr; pjsip_tpfactory *tpfactory; @@ -783,6 +785,7 @@ static pj_status_t init_sip() app.local_addr = tpfactory->addr_name.host; app.local_port = tpfactory->addr_name.port; } +#endif } else { pjsip_transport *tp; |