Changeset 2952 for pjproject/trunk


Ignore:
Timestamp:
Oct 20, 2009 1:24:42 AM (15 years ago)
Author:
bennylp
Message:

More ticket #972: compilation problem with IPPROTO_IPV6 constant (thanks Robert Cichielo for the report)

File:
1 edited

Legend:

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

    r2946 r2952  
    8888const pj_uint16_t PJ_SOL_IPV6   = SOL_IPV6; 
    8989#elif defined(PJ_WIN32) && PJ_WIN32 
    90 const pj_uint16_t PJ_SOL_IPV6   = IPPROTO_IPV6; 
     90#   if defined(IPPROTO_IPV6) || (_WIN32_WINNT >= 0x0501) 
     91        const pj_uint16_t PJ_SOL_IPV6   = IPPROTO_IPV6; 
     92#   else 
     93        const pj_uint16_t PJ_SOL_IPV6   = 41; 
     94#   endif 
    9195#else 
    9296const pj_uint16_t PJ_SOL_IPV6   = 0xFFFF; 
Note: See TracChangeset for help on using the changeset viewer.