Ignore:
Timestamp:
Apr 6, 2007 10:29:20 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #216: Build error when PJ_HAS_TCP is set to zero (thanks ChenHuan?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ioqueue_select.c

    r974 r1159  
    557557    else if (event_type == WRITEABLE_EVENT) 
    558558        PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->wfdset); 
     559#if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 
    559560    else if (event_type == EXCEPTION_EVENT) 
    560561        PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->xfdset); 
     562#endif 
    561563    else 
    562564        pj_assert(0); 
     
    581583    else if (event_type == WRITEABLE_EVENT) 
    582584        PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->wfdset); 
     585#if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 
    583586    else if (event_type == EXCEPTION_EVENT) 
    584587        PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->xfdset); 
     588#endif 
    585589    else 
    586590        pj_assert(0); 
     
    650654     */ 
    651655    if (PJ_FD_COUNT(&ioqueue->rfdset)==0 && 
    652         PJ_FD_COUNT(&ioqueue->wfdset)==0 && 
    653         PJ_FD_COUNT(&ioqueue->xfdset)==0) 
     656        PJ_FD_COUNT(&ioqueue->wfdset)==0  
     657#if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 
     658        && PJ_FD_COUNT(&ioqueue->xfdset)==0 
     659#endif 
     660        ) 
    654661    { 
    655662#if PJ_IOQUEUE_HAS_SAFE_UNREG 
Note: See TracChangeset for help on using the changeset viewer.