Ignore:
Timestamp:
Sep 27, 2008 1:16:35 PM (16 years ago)
Author:
bennylp
Message:

Fixed ticket #644 and 648 again (hopefully once and for all): build error on VS6 with built-in SDK and on PocketPC 2003 SDK since they don't have multicast related socket options

File:
1 edited

Legend:

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

    r2327 r2331  
    116116const pj_uint16_t PJ_SO_RCVBUF  = SO_RCVBUF; 
    117117const pj_uint16_t PJ_SO_SNDBUF  = SO_SNDBUF; 
     118/* Multicasting is not supported e.g. in PocketPC 2003 SDK */ 
     119#ifdef IP_MULTICAST_IF 
    118120const pj_uint16_t PJ_IP_MULTICAST_IF    = IP_MULTICAST_IF; 
    119121const pj_uint16_t PJ_IP_MULTICAST_TTL   = IP_MULTICAST_TTL; 
     
    121123const pj_uint16_t PJ_IP_ADD_MEMBERSHIP  = IP_ADD_MEMBERSHIP; 
    122124const pj_uint16_t PJ_IP_DROP_MEMBERSHIP = IP_DROP_MEMBERSHIP; 
    123  
     125#else 
     126const pj_uint16_t PJ_IP_MULTICAST_IF    = 0xFFFF; 
     127const pj_uint16_t PJ_IP_MULTICAST_TTL   = 0xFFFF; 
     128const pj_uint16_t PJ_IP_MULTICAST_LOOP  = 0xFFFF; 
     129const pj_uint16_t PJ_IP_ADD_MEMBERSHIP  = 0xFFFF; 
     130const pj_uint16_t PJ_IP_DROP_MEMBERSHIP = 0xFFFF; 
     131#endif 
    124132 
    125133/* recv() and send() flags */ 
Note: See TracChangeset for help on using the changeset viewer.