Changeset 2964


Ignore:
Timestamp:
Oct 24, 2009 2:18:27 AM (10 years ago)
Author:
bennylp
Message:

More ticket #972: SOL_UDP is not set properly on Linux

Location:
pjproject/trunk/pjlib/src
Files:
2 edited

Legend:

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

    r2952 r2964  
    7979#ifdef SOL_UDP 
    8080const pj_uint16_t PJ_SOL_UDP    = SOL_UDP; 
     81#elif defined(IPPROTO_UDP) 
     82const pj_uint16_t PJ_SOL_UDP    = IPPROTO_UDP; 
    8183#elif defined(PJ_WIN32) && PJ_WIN32 
    8284const pj_uint16_t PJ_SOL_UDP    = IPPROTO_UDP; 
  • pjproject/trunk/pjlib/src/pjlib-test/sock.c

    r2946 r2964  
    170170    /* Various constants */ 
    171171#if !defined(PJ_SYMBIAN) || PJ_SYMBIAN==0 
    172     if (PJ_SOL_IP==0xFFFF) return -5500; 
     172    if (PJ_AF_INET==0xFFFF) return -5500; 
     173    if (PJ_AF_INET6==0xFFFF) return -5501; 
     174    if (PJ_SOL_SOCKET==0xFFFF) return -5503; 
     175    if (PJ_SOL_IP==0xFFFF) return -5502; 
    173176    if (PJ_SOL_TCP==0xFFFF) return -5510; 
    174177    if (PJ_SOL_UDP==0xFFFF) return -5520; 
Note: See TracChangeset for help on using the changeset viewer.