Ignore:
Timestamp:
Feb 8, 2006 11:14:03 AM (18 years ago)
Author:
bennylp
Message:

Fixed build errors when PJ_OS_HAS_CHECK_STACK or PJ_HAS_TCP is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/util.c

    r65 r153  
    5151        return rc; 
    5252     
     53#if PJ_HAS_TCP 
    5354    if (type == PJ_SOCK_STREAM) { 
    5455        rc = pj_sock_listen(sock, 5); 
     
    5657            return rc; 
    5758    } 
     59#endif 
    5860 
    5961    *ptr_sock = sock; 
     
    9597 
    9698    /* For TCP, listen the socket. */ 
     99#if PJ_HAS_TCP 
    97100    if (type == PJ_SOCK_STREAM) { 
    98101        rc = pj_sock_listen(sock[SERVER], PJ_SOMAXCONN); 
     
    100103            goto on_error; 
    101104    } 
     105#endif 
    102106 
    103107    /* Connect client socket. */ 
     
    108112 
    109113    /* For TCP, must accept(), and get the new socket. */ 
     114#if PJ_HAS_TCP 
    110115    if (type == PJ_SOCK_STREAM) { 
    111116        pj_sock_t newserver; 
     
    119124        sock[SERVER] = newserver; 
    120125    } 
     126#endif 
    121127 
    122128    *serverfd = sock[SERVER]; 
Note: See TracChangeset for help on using the changeset viewer.