Ignore:
Timestamp:
Jul 25, 2008 10:45:34 AM (16 years ago)
Author:
bennylp
Message:

Fixed linking errors in pjnath when TCP is disabled in PJLIB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/turn_sock.c

    r1988 r2177  
    112112    PJ_ASSERT_RETURN(af==pj_AF_INET() || af==pj_AF_INET6(), PJ_EINVAL); 
    113113    PJ_ASSERT_RETURN(options==0, PJ_EINVAL); 
     114    PJ_ASSERT_RETURN(conn_type!=PJ_TURN_TP_TCP || PJ_HAS_TCP, PJ_EINVAL); 
    114115 
    115116    switch (conn_type) { 
     
    641642 
    642643        /* Initiate non-blocking connect */ 
     644#if PJ_HAS_TCP 
    643645        status=pj_activesock_start_connect(turn_sock->active_sock,  
    644646                                           turn_sock->pool, 
     
    651653            return; 
    652654        } 
     655#else 
     656        on_connect_complete(turn_sock->active_sock, PJ_SUCCESS); 
     657#endif 
    653658 
    654659        /* Done for now. Subsequent work will be done in  
Note: See TracChangeset for help on using the changeset viewer.